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

Commit fa4bcf35 authored by Joseph Pirozzo's avatar Joseph Pirozzo
Browse files

AVRCP MediaBrowserService support ACTION_PREPARE

Report support for ACTION_PREPARE when connected to a bluetooth device
capable of streaming.

Bug: 141469207
Test: dumpsys media_session reports ACTION_PREPARE in actions
Change-Id: I43702ba629750c02411cd39a1211bb352cc7457b
parent 5d95b2a9
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -50,7 +50,7 @@ class AvrcpPlayer {
    private String mName = "";
    private int mPlayerType;
    private byte[] mPlayerFeatures = new byte[16];
    private long mAvailableActions;
    private long mAvailableActions = PlaybackStateCompat.ACTION_PREPARE;
    private MediaMetadata mCurrentTrack;
    private PlaybackStateCompat mPlaybackStateCompat;
    private PlayerApplicationSettings mSupportedPlayerApplicationSettings =
@@ -63,7 +63,7 @@ class AvrcpPlayer {
        mAvailableActions = PlaybackStateCompat.ACTION_PAUSE | PlaybackStateCompat.ACTION_PLAY
                | PlaybackStateCompat.ACTION_SKIP_TO_NEXT
                | PlaybackStateCompat.ACTION_SKIP_TO_PREVIOUS
                | PlaybackStateCompat.ACTION_STOP;
                | PlaybackStateCompat.ACTION_STOP | PlaybackStateCompat.ACTION_PREPARE;
        PlaybackStateCompat.Builder playbackStateBuilder = new PlaybackStateCompat.Builder()
                .setActions(mAvailableActions);
        mPlaybackStateCompat = playbackStateBuilder.build();