summaryrefslogtreecommitdiff
path: root/libs/androidfw/FileStream.cpp
diff options
context:
space:
mode:
author Eric Laurent <elaurent@google.com> 2023-12-01 16:24:10 +0100
committer Eric Laurent <elaurent@google.com> 2023-12-01 17:21:30 +0000
commit04d23baa20571a0bbc84b44dbc9546a685fb8476 (patch)
tree42332460f3932f4eb0d1eb196565f9e74c4420dd /libs/androidfw/FileStream.cpp
parentd2ec9ccb5bca31e11e4808c244a6ea78346a4a67 (diff)
AudioDeviceInventory: fix devices role management
AudioDeviceInventory.setDevicesRole() implementation was wrong when trying to merge devices selection for a given <role|strategy> and also systematically clearing an existing selection before applying a new one. setDevicesRoles() is used only for non additive scenario where a set of devices will replace the existing one if any. If the desired behavior is to add devices to an existing preference, then addDevicesRole() should be used. This causes the unwanted systematic reset of call route to default when switching from one route to another. Bug: 307161477 Test: repro steps in the bug Test: AudioCommunicationDeviceTest Change-Id: I09dd9a6c4ad2425b2d9a281e17f112789baeef17
Diffstat (limited to 'libs/androidfw/FileStream.cpp')
0 files changed, 0 insertions, 0 deletions