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

Commit 5a40712e authored by Joseph Pirozzo's avatar Joseph Pirozzo Committed by android-build-merger
Browse files

Merge "Broadcast Disconnecting"

am: ea0df7cc

Change-Id: I0c53964925d4d7366daa5f7c34f53d18f385396e
parents 4f2b33a7 ea0df7cc
Loading
Loading
Loading
Loading
+1 −5
Original line number Diff line number Diff line
@@ -1118,11 +1118,7 @@ public class HeadsetClientStateMachine extends StateMachine {
                    if (!mCurrentDevice.equals(dev)) {
                        break;
                    }
                    if (NativeInterface.disconnectNative(getByteAddress(dev))) {
                        // No state transition is involved, fire broadcast immediately
                        broadcastConnectionState(dev, BluetoothProfile.STATE_DISCONNECTING,
                                BluetoothProfile.STATE_CONNECTED);
                    } else {
                    if (!NativeInterface.disconnectNative(getByteAddress(dev))) {
                        Log.e(TAG, "disconnectNative failed for " + dev);
                    }
                    break;