Fix playback timer flickering issue while streaming and downloading episode at the same time (#6268)
This commit is contained in:
parent
cb2cc7a357
commit
13439e1a48
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue