Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 74d188c9 authored by Daniel Sandler's avatar Daniel Sandler
Browse files

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
parent 8f28f669
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -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));
        }