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

Commit bb9d08da authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "Treat the buffering state as playing"

parents f719cd74 5ccdad02
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;