diff options
| author | 2018-05-26 23:55:19 +0000 | |
|---|---|---|
| committer | 2018-05-26 23:55:19 +0000 | |
| commit | 6de8729657263d0dba112573298055d9396027d6 (patch) | |
| tree | 18767b1ae8c126c5e8f83e0cd46c72f36c2fa551 | |
| parent | 879d09f94607e2f8776bc91a918bef6c7cab3bb3 (diff) | |
| parent | 4d1f9ec3b4c7a0d3ae739cc2c59214c6706d71ce (diff) | |
Merge "Dispatch volume key event when mHandleVolumeKeysInWM is set" into pi-dev
| -rw-r--r-- | services/core/java/com/android/server/policy/PhoneWindowManager.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/services/core/java/com/android/server/policy/PhoneWindowManager.java b/services/core/java/com/android/server/policy/PhoneWindowManager.java index a735297b06c2..7ffd5ed07a31 100644 --- a/services/core/java/com/android/server/policy/PhoneWindowManager.java +++ b/services/core/java/com/android/server/policy/PhoneWindowManager.java @@ -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 |