Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5d3cdf2d authored by Automerger Merge Worker's avatar Automerger Merge Worker
Browse files

Merge "Use new api to disconnect all bt profiles" am: ceeb04ae am: 2c80f4ba

Change-Id: I83de05e61383ea5499967733c7b46dd9c5063b6c
parents 15ee5f5d 2c80f4ba
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -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