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

Commit 54b644e4 authored by hughchen's avatar hughchen
Browse files

Use new api to disconnect all bt profiles

Fixes: 141582844
Test: make -j42 RunSettingsLibRoboTests
Change-Id: I432c12b60016d2230df625155d3c76dbba926077
Merged-In: I432c12b60016d2230df625155d3c76dbba926077
parent 1d379ac0
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -163,9 +163,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