diff options
author | Mike Lockwood <lockwood@android.com> | 2009-10-08 14:31:25 -0400 |
---|---|---|
committer | Mike Lockwood <lockwood@android.com> | 2009-10-08 14:32:44 -0400 |
commit | f184c68119489aa00eccba41d3babedce282518b (patch) | |
tree | 8a0faae85f7854c3ef587936069e2efb64c75d3b | |
parent | 2ae4f37c435ae02cf9038216e1dfce0b82d9caab (diff) | |
download | base-f184c68119489aa00eccba41d3babedce282518b.tar.gz |
Ignore requests to hide the keyguard if we are in the process of waking up.
This should fix a race condition that results in the screen waking up
and displaying nothing but wall paper
Bug b/2168660
Change-Id: I55bac0aaab8425cde282e7fc7e7c6b82217fbc9d
Signed-off-by: Mike Lockwood <lockwood@android.com>
-rw-r--r-- | phone/com/android/internal/policy/impl/KeyguardViewMediator.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/phone/com/android/internal/policy/impl/KeyguardViewMediator.java b/phone/com/android/internal/policy/impl/KeyguardViewMediator.java index 34b5e3a..dc243c4 100644 --- a/phone/com/android/internal/policy/impl/KeyguardViewMediator.java +++ b/phone/com/android/internal/policy/impl/KeyguardViewMediator.java @@ -876,6 +876,10 @@ public class KeyguardViewMediator implements KeyguardViewCallback, private void handleHide() { synchronized (KeyguardViewMediator.this) { if (DEBUG) Log.d(TAG, "handleHide"); + if (mWakeAndHandOff.isHeld()) { + Log.w(TAG, "attempt to hide the keyguard while waking, ignored"); + return; + } // When we go away, tell the poewr manager to honor requests from userActivity. mRealPowerManager.enableUserActivity(true); |