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

Commit f419f86f authored by Zhihai Xu's avatar Zhihai Xu
Browse files

isA2dpPlaying() reports wrong playing state when suspended

bug:12412483
Change-Id: I1cf209479581bf28fc1ebdc462f552b8ec270520
parent 761334b2
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -566,6 +566,7 @@ final class A2dpStateMachine extends StateMachine {
                                           BluetoothA2dp.STATE_NOT_PLAYING);
                    }
                    break;
                case AUDIO_STATE_REMOTE_SUSPEND:
                case AUDIO_STATE_STOPPED:
                    if(mPlayingA2dpDevice != null) {
                        mPlayingA2dpDevice = null;