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

Commit 002f7121 authored by Andrei Stingaceanu's avatar Andrei Stingaceanu
Browse files

Keyboard shortcuts: disable toggling from lockscreen

Do not allow toggling the keyboard shortcuts dialog
if the keyguard is locked.

Bug: 27717058
Change-Id: I4a16a863ed1a4d3cefa7ca41c1361592ef3c5b3c
parent faecc3f8
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -3107,11 +3107,9 @@ public class PhoneWindowManager implements WindowManagerPolicy {
                return -1;
            }
        } else if (keyCode == KeyEvent.KEYCODE_SLASH && event.isMetaPressed()) {
            if (down) {
                if (repeatCount == 0) {
            if (down && repeatCount == 0 && !isKeyguardLocked()) {
                toggleKeyboardShortcutsMenu(event.getDeviceId());
            }
            }
        } else if (keyCode == KeyEvent.KEYCODE_ASSIST) {
            if (down) {
                if (repeatCount == 0) {