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

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

Disable loading widgets in single-stage keyguard

Change-Id: I8975c3a8e6ba060987fda2d0d4b9fc8dc0686d06
parent 59cb2cf1
Loading
Loading
Loading
Loading
+3 −6
Original line number Diff line number Diff line
@@ -195,7 +195,8 @@ public class KeyguardHostView extends KeyguardViewBase {
    protected void onAttachedToWindow() {
        super.onAttachedToWindow();
        mAppWidgetHost.startListening();
        maybePopulateWidgets();
        // TODO: Re-enable when we have layouts that can support a better variety of widgets.
        // maybePopulateWidgets();
        disableStatusViewInteraction();
        post(mSwitchPageRunnable);
    }
@@ -643,11 +644,7 @@ public class KeyguardHostView extends KeyguardViewBase {
        if (securityMode == SecurityMode.None) {
            // Discard current runnable if we're switching back to the selector view
            setOnDismissRunnable(null);
            setSystemUiVisibility(getSystemUiVisibility() | View.STATUS_BAR_DISABLE_BACK);
        } else {
            setSystemUiVisibility(getSystemUiVisibility() & (~View.STATUS_BAR_DISABLE_BACK));
        } 

        mCurrentSecuritySelection = securityMode;
    }