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

Commit 39087bf4 authored by Matt Filetto's avatar Matt Filetto Committed by LuK1337
Browse files

policy: don't allow app switch/recents key to be pressed on lockscreen

Change-Id: I7013900cddd659ece99ed406bffe4e771c8fb211
Issue-Id: BUGBASH-70
parent 96c8347c
Loading
Loading
Loading
Loading
+26 −24
Original line number Diff line number Diff line
@@ -3700,6 +3700,7 @@ public class PhoneWindowManager implements WindowManagerPolicy {
            }
            return 0;
        } else if (keyCode == KeyEvent.KEYCODE_APP_SWITCH) {
            if (!keyguardOn) {
                if (down) {
                    if (mPressOnAppSwitchBehavior == KEY_ACTION_APP_SWITCH
                            || mLongPressOnAppSwitchBehavior == KEY_ACTION_APP_SWITCH) {
@@ -3729,6 +3730,7 @@ public class PhoneWindowManager implements WindowManagerPolicy {
                        }
                    }
                }
            }
            return -1;
        } else if (keyCode == KeyEvent.KEYCODE_N && event.isMetaPressed()) {
            if (down) {