Skip to content
Commit 16ab948c authored by Jean-Michel Trivi's avatar Jean-Michel Trivi
Browse files

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
parent bcca1aa8
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment