Merge "Use new api to disconnect all bt profiles"
This commit is contained in:
@@ -164,9 +164,7 @@ public class CachedBluetoothDevice implements Comparable<CachedBluetoothDevice>
|
|||||||
|
|
||||||
public void disconnect() {
|
public void disconnect() {
|
||||||
synchronized (mProfileLock) {
|
synchronized (mProfileLock) {
|
||||||
for (LocalBluetoothProfile profile : mProfiles) {
|
mLocalAdapter.disconnectAllEnabledProfiles(mDevice);
|
||||||
disconnect(profile);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
// Disconnect PBAP server in case its connected
|
// Disconnect PBAP server in case its connected
|
||||||
// This is to ensure all the profiles are disconnected as some CK/Hs do not
|
// This is to ensure all the profiles are disconnected as some CK/Hs do not
|
||||||
|
|||||||
Reference in New Issue
Block a user