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

Commit 94ca3b30 authored by Sal Savage's avatar Sal Savage
Browse files

Add ACTION_STOP as a default player supported action

Bug: b/128611379
Test: adb shell input keyevent MEDIA_STOP, make sure AVRCP is routed the
key event and fires its onStop() function, passing the event to the
remote device.

Change-Id: Ie4c483e284e145655a44727daa75a9b11fbe0df0
parent 6fa5181d
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -53,7 +53,8 @@ class AvrcpPlayer {
        mId = INVALID_ID;
        //Set Default Actions in case Player data isn't available.
        mAvailableActions = PlaybackState.ACTION_PAUSE | PlaybackState.ACTION_PLAY
            | PlaybackState.ACTION_SKIP_TO_NEXT | PlaybackState.ACTION_SKIP_TO_PREVIOUS;
            | PlaybackState.ACTION_SKIP_TO_NEXT | PlaybackState.ACTION_SKIP_TO_PREVIOUS
            | PlaybackState.ACTION_STOP;
    }

    AvrcpPlayer(int id, String name, byte[] playerFeatures, int playStatus, int playerType) {