summaryrefslogtreecommitdiff
path: root/libs/androidfw/AttributeResolution.cpp
diff options
context:
space:
mode:
author Jean-Michel Trivi <jmtrivi@google.com> 2022-04-29 22:21:48 +0000
committer Jean-Michel Trivi <jmtrivi@google.com> 2022-04-30 02:35:48 +0000
commit2ec2ec5a6bc247ededb6a22904a1b761c29a73ed (patch)
treee87ef8b5806e1fb6918923aed24b577d3525c985 /libs/androidfw/AttributeResolution.cpp
parent0423dff207367d6920e012cf68c3df8648f77fbe (diff)
SpatializerHelper: fix init of compatibility for attached devices
SpatializerHelper.init() is called when AudioService starts, but also after each audioserver restart. After evaluating the transaural/binaural capabilities of the spatializer effect, the associated devices were added to the list of compatible devices regardless of whether they were already present, this was causing duplicated entries in the list. Also avoid always setting the enabled field in the list of compatible devices to true if the device was already in the list. Bug: 230871496 Test: repro in bug Change-Id: If76658677b44d22414fa393208b69d8ec82592fd
Diffstat (limited to 'libs/androidfw/AttributeResolution.cpp')
0 files changed, 0 insertions, 0 deletions