From 13439e1a485003620406e92ac5a0c2ae517ac24e Mon Sep 17 00:00:00 2001 From: GitStart <1501599+gitstart@users.noreply.github.com> Date: Tue, 24 Jan 2023 21:20:58 +0300 Subject: [PATCH] Fix playback timer flickering issue while streaming and downloading episode at the same time (#6268) --- .../antennapod/view/viewholder/EpisodeItemViewHolder.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/src/main/java/de/danoeh/antennapod/view/viewholder/EpisodeItemViewHolder.java b/app/src/main/java/de/danoeh/antennapod/view/viewholder/EpisodeItemViewHolder.java index cdf688502..fd3ec9299 100644 --- a/app/src/main/java/de/danoeh/antennapod/view/viewholder/EpisodeItemViewHolder.java +++ b/app/src/main/java/de/danoeh/antennapod/view/viewholder/EpisodeItemViewHolder.java @@ -226,6 +226,10 @@ public class EpisodeItemViewHolder extends RecyclerView.ViewHolder { } private void updateDuration(PlaybackPositionEvent event) { + if (getFeedItem().getMedia() != null) { + getFeedItem().getMedia().setPosition(event.getPosition()); + getFeedItem().getMedia().setDuration(event.getDuration()); + } int currentPosition = event.getPosition(); int timeDuration = event.getDuration(); int remainingTime = Math.max(timeDuration - currentPosition, 0);