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

Commit 2c33d5dc authored by Jorim Jaggi's avatar Jorim Jaggi
Browse files

Only dismiss Keyguard with space when screen is on

Bug: 17206291
Change-Id: I7fd9c77a0810bb71c0e4193ab121398e8e78d43b
parent 1728879d
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -3612,7 +3612,8 @@ public class PhoneStatusBar extends BaseStatusBar implements DemoMode,
    }

    public boolean onSpacePressed() {
        if (mState == StatusBarState.KEYGUARD || mState == StatusBarState.SHADE_LOCKED) {
        if (mScreenOn != null && mScreenOn
                && (mState == StatusBarState.KEYGUARD || mState == StatusBarState.SHADE_LOCKED)) {
            animateCollapsePanels(0 /* flags */, true /* force */);
            return true;
        }