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

Commit ffb6a4be 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: 3ebcf121

am: c15cc348

Change-Id: I0754321d2e289b4c6d2d64a00d13a2d9c2bfcf1c
parents 120cb677 c15cc348
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);
            }
        }