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

Commit da82d3c4 authored by Joseph Pirozzo's avatar Joseph Pirozzo
Browse files

Broadcast Disconnecting

HeadsetClientStateMachine doesn't have a Disconnecting state, so remove
the broadcast that indicates we are going into that state.

Bug: 72117635
Test: Pair phone to car kit while in a call.
Change-Id: I89f2f0d0ba31dd35eb331ed94bd5211f3da97e7b
parent e32c5466
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;