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

Commit f2876d3e authored by Android Build Coastguard Worker's avatar Android Build Coastguard Worker
Browse files

Merge cherrypicks of ['googleplex-android-review.googlesource.com/30495811'] into 25Q1-release.

Change-Id: Ie20151dc0ddd9cadcec4809e929e374ee617a659
parents 50301ae3 e45ffd20
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -4954,6 +4954,15 @@ public class AudioService extends IAudioService.Stub
        }
        final Set<Integer> deviceTypes = getDeviceSetForStreamDirect(streamType);
        final Set<Integer> a2dpDevices = AudioSystem.intersectionAudioDeviceTypes(
                AudioSystem.DEVICE_OUT_ALL_A2DP_SET, deviceTypes);
        if (!a2dpDevices.isEmpty()) {
            int index = getStreamVolume(streamType,
                    a2dpDevices.toArray(new Integer[0])[0].intValue());
            mDeviceBroker.postSetAvrcpAbsoluteVolumeIndex(index);
        }
        final Set<Integer> absVolumeMultiModeCaseDevices =
                AudioSystem.intersectionAudioDeviceTypes(
                        mAbsVolumeMultiModeCaseDevices, deviceTypes);