diff options
| author | 2016-11-17 07:16:13 +0000 | |
|---|---|---|
| committer | 2016-11-17 07:16:13 +0000 | |
| commit | ffb6a4beab3ef2650cf1f6fcb74b50b20ab48ce8 (patch) | |
| tree | d5eb587444a1b4b386a0b9cae2fb2d264f333c38 | |
| parent | 120cb677f0229216876e4b02752fff147f1dc96e (diff) | |
| parent | c15cc348e8c7a05ad46fc0c143391bae76bba388 (diff) | |
Merge "Don't disconnect an A2DP device when connecting to same device" am: 3ebcf1218b
am: c15cc348e8
Change-Id: I0754321d2e289b4c6d2d64a00d13a2d9c2bfcf1c
| -rwxr-xr-x | packages/SettingsLib/src/com/android/settingslib/bluetooth/A2dpProfile.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/packages/SettingsLib/src/com/android/settingslib/bluetooth/A2dpProfile.java b/packages/SettingsLib/src/com/android/settingslib/bluetooth/A2dpProfile.java index 9608daad70e9..24ede164fbdd 100755 --- a/packages/SettingsLib/src/com/android/settingslib/bluetooth/A2dpProfile.java +++ b/packages/SettingsLib/src/com/android/settingslib/bluetooth/A2dpProfile.java @@ -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); } } |