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

Commit 3759739a authored by Vlad Popa's avatar Vlad Popa Committed by Android (Google) Code Review
Browse files

Merge "audio: Fix unexpected mute on full volume device" into main

parents eccad0c4 5276e23c
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -5681,8 +5681,11 @@ public class AudioService extends IAudioService.Stub
            onSetStreamVolume(streamType, index, flags, deviceType, caller, hasModifyAudioSettings,
                    // ada is non-null when called from setDeviceVolume,
                    // which shouldn't update the mute state
                    canChangeMuteAndUpdateController /*canChangeMute*/);
                    // full volume device shouldn't update the mute state
                    /* canChangeMute= */ canChangeMuteAndUpdateController
                            && !isFullVolumeDevice(deviceType));
            index = streamState.getIndex(deviceType);
        }
        handleAbsoluteVolume(streamType, streamTypeAlias, deviceAttr, index, streamState.mIsMuted,