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

Commit 67be3b03 authored by Adrian Roos's avatar Adrian Roos Committed by android-build-merger
Browse files

Keyguard: only show after screen fully turned off am: 4757c8cc

am: 7f0c9be1

Change-Id: Id880b68be856501aab777f3613070c3d078f117b
parents 7e9fae4d 7f0c9be1
Loading
Loading
Loading
Loading
+7 −5
Original line number Diff line number Diff line
@@ -4210,10 +4210,7 @@ public class StatusBar extends SystemUI implements DemoMode,

    public void showKeyguard() {
        mKeyguardRequested = true;
        // Unconditionally show keyguard again. There's some logic that relies on this
        // being called even when the keyguard is already showing, e.g. for updating
        // sensitiveness of notifications and making sure the panels are expanded.
        showKeyguardImpl();
        updateIsKeyguard();
    }

    public boolean hideKeyguard() {
@@ -4233,7 +4230,12 @@ public class StatusBar extends SystemUI implements DemoMode,
            updatePanelExpansionForKeyguard();
        }
        if (shouldBeKeyguard) {
            if (isGoingToSleep()
                    && mScreenLifecycle.getScreenState() == ScreenLifecycle.SCREEN_TURNING_OFF) {
                // Delay showing the keyguard until screen turned off.
            } else {
                showKeyguardImpl();
            }
        } else {
            return hideKeyguardImpl();
        }