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

Commit d14439bb authored by Michael Wright's avatar Michael Wright
Browse files

Remove SLEEP and POWER from wake key list.

Being in the list doesn't break anything because their functionality
is explicitly managed by PhoneWindowManager, but having them be in
the wake key list is unnecessary and slightly confusing.

Change-Id: I5f61015d8db98e8fcb3428551a1e96e944e2295b
parent c4aa3c78
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -1817,9 +1817,7 @@ public class KeyEvent extends InputEvent implements Parcelable {
    public static final boolean isWakeKey(int keyCode) {
        switch (keyCode) {
            case KeyEvent.KEYCODE_BACK:
            case KeyEvent.KEYCODE_POWER:
            case KeyEvent.KEYCODE_MENU:
            case KeyEvent.KEYCODE_SLEEP:
            case KeyEvent.KEYCODE_WAKEUP:
            case KeyEvent.KEYCODE_PAIRING:
                return true;