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
This commit is contained in:
Eric Laurent
2023-02-03 20:50:06 +01:00
parent 7183782a78
commit 00c916c5f0

View File

@@ -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);
}
/**