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

Commit ed047b20 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "Purge A2dp connected device list"

parents 681df085 fdc0d782
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -3083,6 +3083,11 @@ public class AudioService extends IAudioService.Stub {
                synchronized (mConnectedDevices) {
                    synchronized (mA2dpAvrcpLock) {
                        mA2dp = (BluetoothA2dp) proxy;
                        if (mConnectedBTDevicesList.size() > 0) {
                            Log.d(TAG,"A2dp connection list not empty, purge it, size " +
                                    mConnectedBTDevicesList.size());
                            mConnectedBTDevicesList.clear();
                        }
                        //In Dual A2dp, we can have two devices connected
                        deviceList = mA2dp.getConnectedDevices();
                        Log.d(TAG, "onServiceConnected: A2dp Service connected: " +