Merge "Use new api to disconnect all bt profiles" am: ceeb04aeaf am: 2c80f4ba85

Change-Id: I83de05e61383ea5499967733c7b46dd9c5063b6c
This commit is contained in:
Automerger Merge Worker
2019-12-12 03:50:04 +00:00

View File

@@ -164,9 +164,7 @@ public class CachedBluetoothDevice implements Comparable<CachedBluetoothDevice>
public void disconnect() {
synchronized (mProfileLock) {
for (LocalBluetoothProfile profile : mProfiles) {
disconnect(profile);
}
mLocalAdapter.disconnectAllEnabledProfiles(mDevice);
}
// Disconnect PBAP server in case its connected
// This is to ensure all the profiles are disconnected as some CK/Hs do not