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

Commit 1517e0ee authored by Ajay Panicker's avatar Ajay Panicker Committed by android-build-merger
Browse files

Merge "Treat the buffering state as playing"

am: f3768d4d

Change-Id: Icac965f43d35247f5bc9ad484286980db8e69077
parents f81d0db1 f3768d4d
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;