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

Commit cfa68b97 authored by Jim Miller's avatar Jim Miller
Browse files

Disable simple keyguard when notifications enabled.

Enabling notifications on keyguard tripped keyguard into simple
mode which isn't ready for prime-time.  Disabled with variable.

Fixes bug 13172958

Change-Id: Ia281b06d754cd62455010f9e31c0ee81e4937977
parent a1f1a3c5
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -71,6 +71,7 @@ public class KeyguardViewManager {

    // Timeout used for keypresses
    static final int DIGIT_PRESS_WAKE_MILLIS = 5000;
    private static final boolean ENABLE_SIMPLE_KEYGUARD = false;

    private final Context mContext;
    private final ViewManager mViewManager;
@@ -312,7 +313,7 @@ public class KeyguardViewManager {
        if (force || mKeyguardView == null) {
            mKeyguardHost.setCustomBackground(null);
            mKeyguardHost.removeAllViews();
            int layout = allowNotificationsOnSecureKeyguard()
            int layout = (allowNotificationsOnSecureKeyguard() && ENABLE_SIMPLE_KEYGUARD)
                    ? R.layout.keyguard_simple_host_view
                    : R.layout.keyguard_host_view;
            if (mCurrentLayout != layout) {