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

Commit 96a22ce3 authored by Joseph Pirozzo's avatar Joseph Pirozzo Committed by android-build-merger
Browse files

Merge "Broadcast Disconnecting" am: ea0df7cc

am: 5a40712e

Change-Id: Iba0560912f19a59a2facb8779e03df1d74b5c69d
parents 6cc3985b 5a40712e
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;