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

Commit 6c33ad36 authored by Sam Mortimer's avatar Sam Mortimer
Browse files

Always prevent wake on home keypress when kl config does not contain WAKE

http://review.cyanogenmod.org/#/c/43124/ introduced a change in behaviour
where the home key could wake a device even if the kl config lacked
the WAKE option.  This fix restores the original behaviour.

Change-Id: I56fc23244957a5738823b5e59f0a719670b41f6d
parent 6e84c457
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -3964,7 +3964,7 @@ public class PhoneWindowManager implements WindowManagerPolicy {
                break;
            }
            case KeyEvent.KEYCODE_HOME:
                if (down && !isScreenOn && mHomeWakeScreen) {
                if (down && !isScreenOn && isWakeKey && mHomeWakeScreen) {
                    if (keyguardActive) {
                        // If the keyguard is showing, let it wake the device when ready.
                        mKeyguardMediator.onWakeKeyWhenKeyguardShowingTq(keyCode);