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

Commit 869b1dc1 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Make hardware buttons just wake up device"

parents c5de9782 c138fa64
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -4017,9 +4017,12 @@ public class PhoneWindowManager implements WindowManagerPolicy {
            return true;
        }

        // Watches handle BACK specially
        // Watches handle BACK and hardware buttons specially
        if (mHasFeatureWatch && (keyCode == KeyEvent.KEYCODE_BACK
                || keyCode == KeyEvent.KEYCODE_STEM_PRIMARY)) {
                || keyCode == KeyEvent.KEYCODE_STEM_PRIMARY
                || keyCode == KeyEvent.KEYCODE_STEM_1
                || keyCode == KeyEvent.KEYCODE_STEM_2
                || keyCode == KeyEvent.KEYCODE_STEM_3)) {
            return false;
        }