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

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

Merge "Treat the buffering state as playing"

parents 201ac16f b83d2293
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;