Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e127854e authored by Manisha Agarwal's avatar Manisha Agarwal Committed by Bruno Martins
Browse files

Audio: Update current active bt device of mApmConnectedDevices.

Update key of bt-a2dp inside mApmConnectedDevices when the
active bt device changes.

CRs-Fixed: 2634767
Change-Id: I92fa39581a10fd8900e41139d71ca46dd2445eb6
parent 5f90a94d
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -474,6 +474,7 @@ public class AudioDeviceInventory {

            if (event == BtHelper.EVENT_ACTIVE_DEVICE_CHANGE) {
                // Device is connected
                mApmConnectedDevices.replace(AudioSystem.DEVICE_OUT_BLUETOOTH_A2DP, key);
                if (a2dpVolume != -1) {
                    mDeviceBroker.postSetVolumeIndexOnDevice(AudioSystem.STREAM_MUSIC,
                            // convert index to internal representation in VolumeStreamState