Loading packages/SystemUI/src/com/android/keyguard/KeyguardAbsKeyInputView.java +4 −0 Original line number Diff line number Diff line Loading @@ -46,6 +46,7 @@ public abstract class KeyguardAbsKeyInputView extends LinearLayout protected View mEcaView; protected boolean mEnableHaptics; private boolean mDismissing; protected boolean mResumed; private CountDownTimer mCountdownTimer = null; // To avoid accidental lockout due to events while the device in in the pocket, ignore Loading Loading @@ -263,6 +264,8 @@ public abstract class KeyguardAbsKeyInputView extends LinearLayout @Override public void onPause() { mResumed = false; if (mCountdownTimer != null) { mCountdownTimer.cancel(); mCountdownTimer = null; Loading @@ -276,6 +279,7 @@ public abstract class KeyguardAbsKeyInputView extends LinearLayout @Override public void onResume(int reason) { mResumed = true; } @Override Loading packages/SystemUI/src/com/android/keyguard/KeyguardPasswordView.java +5 −0 Original line number Diff line number Diff line Loading @@ -81,6 +81,11 @@ public class KeyguardPasswordView extends KeyguardAbsKeyInputView protected void resetState() { mSecurityMessageDisplay.setMessage(""); final boolean wasDisabled = mPasswordEntry.isEnabled(); // Don't set enabled password entry & showSoftInput when PasswordEntry is invisible or in // pausing stage. if (!mResumed || !mPasswordEntry.isVisibleToUser()) { return; } setPasswordEntryEnabled(true); setPasswordEntryInputEnabled(true); if (wasDisabled) { Loading Loading
packages/SystemUI/src/com/android/keyguard/KeyguardAbsKeyInputView.java +4 −0 Original line number Diff line number Diff line Loading @@ -46,6 +46,7 @@ public abstract class KeyguardAbsKeyInputView extends LinearLayout protected View mEcaView; protected boolean mEnableHaptics; private boolean mDismissing; protected boolean mResumed; private CountDownTimer mCountdownTimer = null; // To avoid accidental lockout due to events while the device in in the pocket, ignore Loading Loading @@ -263,6 +264,8 @@ public abstract class KeyguardAbsKeyInputView extends LinearLayout @Override public void onPause() { mResumed = false; if (mCountdownTimer != null) { mCountdownTimer.cancel(); mCountdownTimer = null; Loading @@ -276,6 +279,7 @@ public abstract class KeyguardAbsKeyInputView extends LinearLayout @Override public void onResume(int reason) { mResumed = true; } @Override Loading
packages/SystemUI/src/com/android/keyguard/KeyguardPasswordView.java +5 −0 Original line number Diff line number Diff line Loading @@ -81,6 +81,11 @@ public class KeyguardPasswordView extends KeyguardAbsKeyInputView protected void resetState() { mSecurityMessageDisplay.setMessage(""); final boolean wasDisabled = mPasswordEntry.isEnabled(); // Don't set enabled password entry & showSoftInput when PasswordEntry is invisible or in // pausing stage. if (!mResumed || !mPasswordEntry.isVisibleToUser()) { return; } setPasswordEntryEnabled(true); setPasswordEntryInputEnabled(true); if (wasDisabled) { Loading