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

Commit 496ea0a5 authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge "[AudioServer] Fix CTS for volume groups based on non public streams"...

Merge "[AudioServer] Fix CTS for volume groups based on non public streams" am: 99f24661 am: 9c542555

Change-Id: Id03a3f79ea22f19e031854a9f70a419829598e20
parents d6f48a37 9c542555
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -2156,6 +2156,13 @@ public class AudioService extends IAudioService.Stub

        // For legacy reason, propagate to all streams associated to this volume group
        for (final int groupedStream : vgs.getLegacyStreamTypes()) {
            try {
                ensureValidStreamType(groupedStream);
            } catch (IllegalArgumentException e) {
                Log.d(TAG, "volume group " + volumeGroup + " has internal streams (" + groupedStream
                        + "), do not change associated stream volume");
                continue;
            }
            setStreamVolume(groupedStream, index, flags, callingPackage, callingPackage,
                            Binder.getCallingUid());
        }