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

Commit 3a763e30 authored by Hongwei Wang's avatar Hongwei Wang Committed by android-build-merger
Browse files

Merge "Dispatch volume key event when mHandleVolumeKeysInWM is set" into pi-dev

am: 6de87296

Change-Id: Ia61b80bf582f14108417d640ea135ab51988989a
parents a634f425 6de87296
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -6161,7 +6161,9 @@ public class PhoneWindowManager implements WindowManagerPolicy {
                    sendSystemKeyToStatusBarAsync(event.getKeyCode());

                    TelecomManager telecomManager = getTelecommService();
                    if (telecomManager != null) {
                    if (telecomManager != null && !mHandleVolumeKeysInWM) {
                        // When {@link #mHandleVolumeKeysInWM} is set, volume key events
                        // should be dispatched to WM.
                        if (telecomManager.isRinging()) {
                            // If an incoming call is ringing, either VOLUME key means
                            // "silence ringer".  We handle these keys here, rather than