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

Commit f377323e authored by Vlad Popa's avatar Vlad Popa
Browse files

Sync mute between VGS and VSS only for active device

Test: atest AudioDeviceVolumeManagerTest
Bug: 396216663
Flag: android.media.audio.device_volume_apis
Change-Id: Icad1e558cfd33b03b651ac66fbd9a56c74dd6d42
parent 160732a2
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -10396,6 +10396,10 @@ public class AudioService extends IAudioService.Stub
                        mVolumeGroupState.updateVolumeIndex(groupIndex, device);
                        // Only propage mute of stream when applicable
                        if (isMutable()) {
                            if (deviceVolumeApis() && device != getDeviceForStream(mStreamType)) {
                                // only mute if the device is active
                                return;
                            }
                            // For call stream, align mute only when muted, not when index is set to
                            // 0
                            mVolumeGroupState.mute(