From 74d188c91134a255005c392770ad80d8c44e3c0c Mon Sep 17 00:00:00 2001 From: Daniel Sandler Date: Wed, 10 Aug 2011 00:00:31 -0400 Subject: [PATCH] Initial support for notification panel access in keyguard. The special touch target and fancy animations (see bug 5052059) aren't there yet; we'll probably need a different flavor of DISABLE_EXPAND to specify that state. But this is a start and should get the basic feature into testers' hands. Bug: 5052059 Change-Id: I967e4557e467d1762d6566643bb401eb84f94e92 --- .../internal/policy/impl/KeyguardViewMediator.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/policy/src/com/android/internal/policy/impl/KeyguardViewMediator.java b/policy/src/com/android/internal/policy/impl/KeyguardViewMediator.java index ee6d2ee4c74ac..4abb9eb973351 100644 --- a/policy/src/com/android/internal/policy/impl/KeyguardViewMediator.java +++ b/policy/src/com/android/internal/policy/impl/KeyguardViewMediator.java @@ -143,6 +143,12 @@ public class KeyguardViewMediator implements KeyguardViewCallback, */ private static final int KEYGUARD_DONE_DRAWING_TIMEOUT_MS = 2000; + /** + * Allow the user to operate the status bar when the keyguard is engaged (without a pattern or + * password). + */ + private static final boolean ENABLE_STATUS_BAR_IN_KEYGUARD = true; + private Context mContext; private AlarmManager mAlarmManager; private StatusBarManager mStatusBarManager; @@ -1137,7 +1143,7 @@ public class KeyguardViewMediator implements KeyguardViewCallback, boolean enable = !mShowing || (mHidden && !isSecure()); mStatusBarManager.disable(enable ? StatusBarManager.DISABLE_NONE : - ( StatusBarManager.DISABLE_EXPAND + ( (ENABLE_STATUS_BAR_IN_KEYGUARD ? 0 : StatusBarManager.DISABLE_EXPAND) | StatusBarManager.DISABLE_NAVIGATION | StatusBarManager.DISABLE_CLOCK)); }