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

Commit 5805a098 authored by Yeabkal Wubshit's avatar Yeabkal Wubshit Committed by Android (Google) Code Review
Browse files

Merge "Send Power Key Ups and Stem Primary KeyEvents to Status Bar"

parents dafe2480 f0c69ec2
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -1020,6 +1020,9 @@ public class PhoneWindowManager implements WindowManagerPolicy {
    }

    private void interceptPowerKeyUp(KeyEvent event, boolean canceled) {
        // Inform the StatusBar; but do not allow it to consume the event.
        sendSystemKeyToStatusBarAsync(event);

        final boolean handled = canceled || mPowerKeyHandled;

        if (!handled) {
@@ -4568,6 +4571,9 @@ public class PhoneWindowManager implements WindowManagerPolicy {
                // TODO(b/266098478): Add logic to handle KEYCODE_MACROx feature
                result &= ~ACTION_PASS_TO_USER;
                break;
            case KeyEvent.KEYCODE_STEM_PRIMARY:
                sendSystemKeyToStatusBarAsync(event);
                break;
        }

        if (useHapticFeedback) {