File tree Expand file tree Collapse file tree 1 file changed +11
-6
lines changed
policy/src/com/android/internal/policy/impl/keyguard Expand file tree Collapse file tree 1 file changed +11
-6
lines changed Original file line number Diff line number Diff line change @@ -129,12 +129,15 @@ protected void onFinishInflate() {
129129 mLockPatternView .setTactileFeedbackEnabled (mLockPatternUtils .isTactileFeedbackEnabled ());
130130
131131 mForgotPatternButton = (Button ) findViewById (R .id .forgot_password_button );
132- mForgotPatternButton .setText (R .string .kg_forgot_pattern_button_text );
133- mForgotPatternButton .setOnClickListener (new OnClickListener () {
134- public void onClick (View v ) {
135- mCallback .showBackupSecurity ();
136- }
137- });
132+ // note: some configurations don't have an emergency call area
133+ if (mForgotPatternButton != null ) {
134+ mForgotPatternButton .setText (R .string .kg_forgot_pattern_button_text );
135+ mForgotPatternButton .setOnClickListener (new OnClickListener () {
136+ public void onClick (View v ) {
137+ mCallback .showBackupSecurity ();
138+ }
139+ });
140+ }
138141
139142 setFocusableInTouchMode (true );
140143
@@ -148,6 +151,8 @@ public void onClick(View v) {
148151 }
149152
150153 private void updateFooter (FooterMode mode ) {
154+ if (mForgotPatternButton == null ) return ; // no ECA? no footer
155+
151156 switch (mode ) {
152157 case Normal :
153158 if (DEBUG ) Log .d (TAG , "mode normal" );
You can’t perform that action at this time.
0 commit comments