Merge "Don't disconnect an A2DP device when connecting to same device" am: 3ebcf1218b
am: c15cc348e8
Change-Id: I0754321d2e289b4c6d2d64a00d13a2d9c2bfcf1c
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user