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:
@@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user