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

Commit ea0df7cc authored by Joseph Pirozzo's avatar Joseph Pirozzo Committed by Gerrit Code Review
Browse files

Merge "Broadcast Disconnecting"

parents 5454507f da82d3c4
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;