commit | 69b47ca7db36f1d0e54f7d8263c222e917346fa9 | [log] [tgz] |
---|---|---|
author | Ajay Panicker <apanicke@google.com> | Thu May 17 17:36:31 2018 -0700 |
committer | Ajay Panicker <apanicke@google.com> | Fri May 18 13:49:23 2018 -0700 |
tree | dd93fe636630cd3d36dc9708d956cdf9ac05c38b | |
parent | 06a28b9d84f85e9bf40cd2396bcfb4ae33a507a8 [diff] |
Set device volume when AudioManager says device is connected Instead of setting the remembered volume before the active device switch happens, set it once we get a callback from the AudioManager that the device has changed. This prevents the posibility of the new volume being used with the old active device. Bug: 79529581 Test: Switch devices multiple times and see that the volume changes when the new device is connected. Change-Id: I6a9e10654c844a5e2727d5409e27dd9e8176dd18