summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorJean-Michel Trivi <jmtrivi@google.com>2019-05-20 15:30:31 -0700
committerJean-Michel Trivi <jmtrivi@google.com>2019-05-20 15:41:44 -0700
commit16ab948c01b7e27ed0e19d578128f3eb7901f247 (patch)
treeda0980b91bdbb94ddb74183db8dc0f8dda43e82b /tools/aapt2/java/JavaClassGenerator_test.cpp
parentbcca1aa8f86f35b31fc9b520f868b8ea226ba804 (diff)
SeekBarVolumizer: fix media volume initialization for VolumeGroup
The VolumeGroup callback was initializing the sliders by querying the VolumeGroup API, which talks to APM. In AVCRP with a BT headset that supports absolute volume, the APM only sees the media volume at max, as no digital attenuation is applied then, which causes the VolumeGroup API to report max volume. The fix consists in using the updateSlider() method instead, which will cause the volume query to go through AudioService (which maintains the actual volume setting independently of the digital attenuation that is applied). Bug: 132287865 Test: connect BT headset with abs volume, go to Settings > Sound Change-Id: I3d46af69d808169806c86cb543440f262097965b
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions