diff options
author | Jim Miller <jaggies@google.com> | 2011-07-14 15:43:17 -0700 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2011-07-14 15:43:17 -0700 |
commit | fbaa1ea13cf4ebf95f6b4228219d9385781127e5 (patch) | |
tree | ae2aed84b3e62b1eac3e1d1e42074b03d9eccf83 /policy | |
parent | 2c41fa18bb48bb82e710c2899bd87ad6f84066be (diff) | |
parent | dcb9376913a954266d07733e5e33bd846230cff8 (diff) | |
download | frameworks_base-fbaa1ea13cf4ebf95f6b4228219d9385781127e5.zip frameworks_base-fbaa1ea13cf4ebf95f6b4228219d9385781127e5.tar.gz frameworks_base-fbaa1ea13cf4ebf95f6b4228219d9385781127e5.tar.bz2 |
Merge "Fix 5027468: prevent screen from turning back on while lockscreen in password mode."
Diffstat (limited to 'policy')
-rw-r--r-- | policy/src/com/android/internal/policy/impl/PasswordUnlockScreen.java | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/policy/src/com/android/internal/policy/impl/PasswordUnlockScreen.java b/policy/src/com/android/internal/policy/impl/PasswordUnlockScreen.java index 75e799c..e177565 100644 --- a/policy/src/com/android/internal/policy/impl/PasswordUnlockScreen.java +++ b/policy/src/com/android/internal/policy/impl/PasswordUnlockScreen.java @@ -75,6 +75,7 @@ public class PasswordUnlockScreen extends LinearLayout implements KeyguardScreen private StatusView mStatusView; private final boolean mUseSystemIME = true; // TODO: Make configurable + private boolean mResuming; // used to prevent poking the wakelock during onResume() // To avoid accidental lockout due to events while the device in in the pocket, ignore // any passwords with length less than or equal to this length. @@ -185,7 +186,9 @@ public class PasswordUnlockScreen extends LinearLayout implements KeyguardScreen } public void afterTextChanged(Editable s) { - mCallback.pokeWakelock(); + if (!mResuming) { + mCallback.pokeWakelock(); + } } }); } @@ -208,6 +211,7 @@ public class PasswordUnlockScreen extends LinearLayout implements KeyguardScreen /** {@inheritDoc} */ public void onResume() { + mResuming = true; // reset status mStatusView.resetStatusInfo(mUpdateMonitor, mLockPatternUtils); @@ -222,6 +226,7 @@ public class PasswordUnlockScreen extends LinearLayout implements KeyguardScreen if (deadline != 0) { handleAttemptLockout(deadline); } + mResuming = false; } /** {@inheritDoc} */ |