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

Commit 9f2b1637 authored by Anubhav Gupta's avatar Anubhav Gupta Committed by Android Git Automerger
Browse files

am b955693c: Move A2dp State to Disconnected when BT is Turned OFF

* commit 'b955693c':
  Move A2dp State to Disconnected when BT is Turned OFF
parents d7e0723f b955693c
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -144,6 +144,12 @@ final class A2dpStateMachine extends StateMachine {
    }

    public void doQuit() {
        if ((mTargetDevice != null) &&
            (getConnectionState(mTargetDevice) == BluetoothProfile.STATE_CONNECTING)) {
            log("doQuit()- Move A2DP State to DISCONNECTED");
            broadcastConnectionState(mTargetDevice, BluetoothProfile.STATE_DISCONNECTED,
                                     BluetoothProfile.STATE_CONNECTING);
        }
        quitNow();
    }