diff options
| author | 2019-09-09 17:56:16 -0700 | |
|---|---|---|
| committer | 2019-09-09 17:56:16 -0700 | |
| commit | 3333a5ea71fbc8978aa2dfcda7f05f93eef53c32 (patch) | |
| tree | b9ae2623f7b0fb054f01ba57a4a1c17d54cd26c4 | |
| parent | 62f76cfc7c1415ebef5115e8f2455b167c47cc5b (diff) | |
| parent | 860674f08a92c06a044478b8186116353767853f (diff) | |
Merge "audioservice: do not show volume panel when system audio is on" am: 102b795b61 am: f73668be43
am: 860674f08a
Change-Id: I93046f384c2aba58a3feae4e7cbae9eec61ce75c
| -rw-r--r-- | services/core/java/com/android/server/audio/AudioService.java | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/services/core/java/com/android/server/audio/AudioService.java b/services/core/java/com/android/server/audio/AudioService.java index 7fbb0fb1fd68..9c6b34cf6184 100644 --- a/services/core/java/com/android/server/audio/AudioService.java +++ b/services/core/java/com/android/server/audio/AudioService.java @@ -2550,15 +2550,11 @@ public class AudioService extends IAudioService.Stub mVolumeController.postVolumeChanged(streamType, flags); } - // If Hdmi-CEC system audio mode is on, we show volume bar only when TV - // receives volume notification from Audio Receiver. + // If Hdmi-CEC system audio mode is on and we are a TV panel, never show volume bar. private int updateFlagsForTvPlatform(int flags) { synchronized (mHdmiClientLock) { - if (mHdmiTvClient != null) { - if (mHdmiSystemAudioSupported && - ((flags & AudioManager.FLAG_HDMI_SYSTEM_AUDIO_VOLUME) == 0)) { - flags &= ~AudioManager.FLAG_SHOW_UI; - } + if (mHdmiTvClient != null && mHdmiSystemAudioSupported) { + flags &= ~AudioManager.FLAG_SHOW_UI; } } return flags; |