diff options
| author | Jean-Michel Trivi <jmtrivi@google.com> | 2019-05-20 15:30:31 -0700 | 
|---|---|---|
| committer | Jean-Michel Trivi <jmtrivi@google.com> | 2019-05-20 15:41:44 -0700 | 
| commit | 16ab948c01b7e27ed0e19d578128f3eb7901f247 (patch) | |
| tree | da0980b91bdbb94ddb74183db8dc0f8dda43e82b /rs/java/android/renderscript/ProgramRaster.java | |
| parent | bcca1aa8f86f35b31fc9b520f868b8ea226ba804 (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 'rs/java/android/renderscript/ProgramRaster.java')
0 files changed, 0 insertions, 0 deletions
