am 3d8bc316: Merge branch \'eclair-plus-aosp\' of ssh://android-git.corp.google.com:29418/platform/frameworks/policies/base into eclair-mr2-plus-aosp

Merge commit '3d8bc316ae81b443522c812a896d42fb2978ba3d'

* commit '3d8bc316ae81b443522c812a896d42fb2978ba3d':
  Ignore requests to hide the keyguard if we are in the process of waking up.
This commit is contained in:
Dan Murphy
2009-10-13 12:03:33 -07:00
committed by Android Git Automerger

View File

@@ -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);