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

Commit 75dad7b4 authored by Tyler Gunn's avatar Tyler Gunn Committed by Android Git Automerger
Browse files

am 10251733: am 9f9e89a7: Moving STATE_DISCONNECTED broadcast.

* commit '10251733':
  Moving STATE_DISCONNECTED broadcast.
parents a6e3fd40 10251733
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -990,8 +990,6 @@ final class HeadsetStateMachine extends StateMachine {
            switch (state) {
                case HeadsetHalConstants.CONNECTION_STATE_DISCONNECTED:
                    if (mConnectedDevicesList.contains(device)) {
                        broadcastConnectionState(device, BluetoothProfile.STATE_DISCONNECTED,
                                                 BluetoothProfile.STATE_CONNECTED);
                        processWBSEvent(0, device); /* disable WBS audio parameters */
                        synchronized (HeadsetStateMachine.this) {
                            mConnectedDevicesList.remove(device);
@@ -1008,6 +1006,8 @@ final class HeadsetStateMachine extends StateMachine {
                                processMultiHFConnected(device);
                            }
                        }
                        broadcastConnectionState(device, BluetoothProfile.STATE_DISCONNECTED,
                                                 BluetoothProfile.STATE_CONNECTED);
                    } else {
                        Log.e(TAG, "Disconnected from unknown device: " + device);
                    }