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

Commit f32b53ea authored by Ajay Panicker's avatar Ajay Panicker Committed by Android (Google) Code Review
Browse files

Merge "Treat the buffering state as playing" into pi-dev

parents eac16138 d230345c
Loading
Loading
Loading
Loading
+0 −5
Original line number Diff line number Diff line
@@ -573,11 +573,6 @@ public class MediaPlayerList {
                return;
            }

            if (data.state.getState() == PlaybackState.STATE_BUFFERING) {
                Log.d(TAG, "mediaUpdatedCallback(): Currently buffering, deferring update");
                return;
            }

            sendMediaUpdate(data);
        }
    };
+1 −1
Original line number Diff line number Diff line
@@ -48,12 +48,12 @@ class PlayStatus {

    static byte playbackStateToAvrcpState(int playbackState) {
        switch (playbackState) {
            case PlaybackState.STATE_BUFFERING:
            case PlaybackState.STATE_STOPPED:
            case PlaybackState.STATE_NONE:
            case PlaybackState.STATE_CONNECTING:
                return PlayStatus.STOPPED;

            case PlaybackState.STATE_BUFFERING:
            case PlaybackState.STATE_PLAYING:
                return PlayStatus.PLAYING;