Merge "AudioService: fix removeDeviceAsNonDefaultForStrategy regression" into udc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
72d3082e8a
@@ -1031,7 +1031,8 @@ public class AudioDeviceInventory {
|
||||
synchronized (rolesMap) {
|
||||
Pair<Integer, Integer> key = new Pair<>(useCase, role);
|
||||
if (!rolesMap.containsKey(key)) {
|
||||
return AudioSystem.SUCCESS;
|
||||
// trying to remove a role for a device that wasn't set
|
||||
return AudioSystem.BAD_VALUE;
|
||||
}
|
||||
List<AudioDeviceAttributes> roleDevices = rolesMap.get(key);
|
||||
List<AudioDeviceAttributes> appliedDevices = new ArrayList<>();
|
||||
|
||||
Reference in New Issue
Block a user