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

Commit 00c916c5 authored by Eric Laurent's avatar Eric Laurent
Browse files

AudioManager: restore getVolumeGroupIdForAttributes behavior

Allow getVolumeGroupIdForAttributes() to fallback
to default volume group as it was before commiti c8e375e0.

Bug: 267588552
Test: atest AudioServiceHostTest#testAudioVolumeGroups
Change-Id: I571ffd8c1b51bbce943bfac4cd4f628e282fcc12
parent 7183782a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1409,7 +1409,7 @@ public class AudioManager {
    public int getVolumeGroupIdForAttributes(@NonNull AudioAttributes attributes) {
        Preconditions.checkNotNull(attributes, "Audio Attributes must not be null");
        return AudioProductStrategy.getVolumeGroupIdForAudioAttributes(attributes,
                /* fallbackOnDefault= */ false);
                /* fallbackOnDefault= */ true);
    }

    /**