Merge "Use new api to disconnect all bt profiles"

am: ceeb04aeaf

Change-Id: I139c5408cb9c9a8b87837ddd844014e9dc1f3fe7
This commit is contained in:
hughchen
2019-12-11 19:27:38 -08:00
committed by android-build-merger

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