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

Commit 72ed7326 authored by Beth Thibodeau's avatar Beth Thibodeau Committed by android-build-merger
Browse files

Merge "Update the playback UI any time the state changes" into qt-dev

am: 3690bbad

Change-Id: I5a10c55220a789e6cbc7be85867a2ae7591a37b7
parents 89a11d0e 3690bbad
Loading
Loading
Loading
Loading
+2 −0
Original line number Original line Diff line number Diff line
@@ -90,6 +90,8 @@ public class NotificationMediaTemplateViewWrapper extends NotificationTemplateVi
        @Override
        @Override
        public void onPlaybackStateChanged(PlaybackState state) {
        public void onPlaybackStateChanged(PlaybackState state) {
            if (state.getState() != PlaybackState.STATE_PLAYING) {
            if (state.getState() != PlaybackState.STATE_PLAYING) {
                // Update the UI once, in case playback info changed while we were paused
                mUpdatePlaybackUi.run();
                clearTimer();
                clearTimer();
            } else if (mSeekBarTimer == null) {
            } else if (mSeekBarTimer == null) {
                startTimer();
                startTimer();