From b4a584215719c3c2ec27d020654d9e143bc33bc1 Mon Sep 17 00:00:00 2001 From: Mike Lockwood Date: Thu, 8 Oct 2009 14:31:25 -0400 Subject: [PATCH] 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 --- .../android/internal/policy/impl/KeyguardViewMediator.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/policy/com/android/internal/policy/impl/KeyguardViewMediator.java b/policy/com/android/internal/policy/impl/KeyguardViewMediator.java index 34b5e3a3850e3..dc243c45f4b0f 100644 --- a/policy/com/android/internal/policy/impl/KeyguardViewMediator.java +++ b/policy/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);