Merge "Don't disconnect an A2DP device when connecting to same device" am: 3ebcf1218b am: c15cc348e8 am: ffb6a4beab

am: c51275a5e5

Change-Id: I26e97c6f6f13b5b37134763f95131e184530b3ad
This commit is contained in:
Pavlin Radoslavov
2016-11-17 19:03:32 +00:00
committed by android-build-merger

View File

@@ -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);
}
}