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

Commit 9cfb18a0 authored by Pavlin Radoslavov's avatar Pavlin Radoslavov Committed by android-build-merger
Browse files

Merge "Don't disconnect an A2DP device when connecting to same device" am:...

Merge "Don't disconnect an A2DP device when connecting to same device" am: 3ebcf121 am: c15cc348 am: ffb6a4be
am: c51275a5

Change-Id: I26e97c6f6f13b5b37134763f95131e184530b3ad
parents 8b75eeef c51275a5
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -116,6 +116,10 @@ public final class A2dpProfile implements LocalBluetoothProfile {
        List<BluetoothDevice> sinks = getConnectedDevices();
        if (sinks != null) {
            for (BluetoothDevice sink : sinks) {
                if (sink.equals(device)) {
                    Log.w(TAG, "Connecting to device " + device + " : disconnect skipped");
                    continue;
                }
                mService.disconnect(sink);
            }
        }