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

Commit 860674f0 authored by Eric Laurent's avatar Eric Laurent Committed by android-build-merger
Browse files

Merge "audioservice: do not show volume panel when system audio is on" am: 102b795b

am: f73668be

Change-Id: If04fb012169486d771384f6376be69f87358a121
parents c6eb63ba f73668be
Loading
Loading
Loading
Loading
+3 −7
Original line number Diff line number Diff line
@@ -2550,17 +2550,13 @@ 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)) {
            if (mHdmiTvClient != null && mHdmiSystemAudioSupported) {
                flags &= ~AudioManager.FLAG_SHOW_UI;
            }
        }
        }
        return flags;
    }