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

Commit e1b47ee2 authored by Eric Laurent's avatar Eric Laurent
Browse files

AudioDeviceInventory: do not use immutable device lists

Do not add immutable AudioDeviceAttributes lists to strategy
and capture preset preferrences maps as these lists can be
modified after creation.

Bug: 307161477
Test: repro steps in bug.
Change-Id: I746ff492118bcae4a3ff46647d1ed1f9a63e7ba4
parent 8bc28f86
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1384,7 +1384,7 @@ public class AudioDeviceInventory {
            } else {
                status = addOp.deviceRoleAction(useCase, role, devices);
                if (status == AudioSystem.SUCCESS) {
                    rolesMap.put(key, devices);
                    rolesMap.put(key, new ArrayList(devices));
                }
            }
            return status;