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

Commit 54f14176 authored by Joseph Pirozzo's avatar Joseph Pirozzo Committed by android-build-merger
Browse files

Merge "Check PBAP Server before disconnecting" am: 87d1cdd4 am: 7128032d

am: e005b50e

Change-Id: I3e20e07f76c2fc90aaee0fe949e9fabf3137d920
parents f1c24661 e005b50e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -167,7 +167,7 @@ public class CachedBluetoothDevice implements Comparable<CachedBluetoothDevice>
        // This is to ensure all the profiles are disconnected as some CK/Hs do not
        // disconnect  PBAP connection when HF connection is brought down
        PbapServerProfile PbapProfile = mProfileManager.getPbapProfile();
        if (PbapProfile.getConnectionStatus(mDevice) == BluetoothProfile.STATE_CONNECTED)
        if (PbapProfile != null && isConnectedProfile(PbapProfile))
        {
            PbapProfile.disconnect(mDevice);
        }