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

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

Merge "AVRCP Controller browsing disconnect status"

am: 472771a9

Change-Id: I17f80adafa0f73b655d2d579abbb7064825cf90e
parents a5b41072 472771a9
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -221,6 +221,7 @@ class AvrcpControllerStateMachine extends StateMachine {
        PlaybackState.Builder pbb = new PlaybackState.Builder();
        pbb.setState(PlaybackState.STATE_ERROR, PlaybackState.PLAYBACK_POSITION_UNKNOWN,
                1.0f).setActions(0);
        pbb.setErrorMessage(mService.getString(R.string.bluetooth_disconnected));
        BluetoothMediaBrowserService.notifyChanged(pbb.build());
        mService.sBrowseTree.mRootNode.removeChild(
                mBrowseTree.mRootNode);
+5 −0
Original line number Diff line number Diff line
@@ -71,6 +71,11 @@ public class BluetoothMediaBrowserService extends MediaBrowserService {
                | MediaSession.FLAG_HANDLES_TRANSPORT_CONTROLS);
        mSession.setQueueTitle(getString(R.string.bluetooth_a2dp_sink_queue_name));
        mSession.setQueue(mMediaQueue);
        PlaybackState.Builder playbackStateBuilder = new PlaybackState.Builder();
        playbackStateBuilder.setState(PlaybackState.STATE_ERROR,
                PlaybackState.PLAYBACK_POSITION_UNKNOWN, 1.0f).setActions(0);
        playbackStateBuilder.setErrorMessage(getString(R.string.bluetooth_disconnected));
        mSession.setPlaybackState(playbackStateBuilder.build());
        sBluetoothMediaBrowserService = this;
    }