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

Commit b6734f79 authored by Eric Laurent's avatar Eric Laurent 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" into rvc-dev am: fd99a18c

Change-Id: I902d434cbe626cb7d8bf6294d069c9276732d35d
parents 3d2bab13 fd99a18c
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -2324,6 +2324,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());
        }