From 917e60fbe25fe496cf663465838198970171b413 Mon Sep 17 00:00:00 2001 From: Ptilopsis Leucotis Date: Tue, 29 Oct 2019 11:11:12 +0300 Subject: [PATCH] Fix incorrect progress string on widget If option "pref_followQueue_title" is disabled, when played episode #1 is ended and next episode #2 is loaded, progress string on widget show incorrect information about position and duration of episode, because it show (position / duration) of ended episode #1 instead of (position / duration) of loaded episode #2. --- .../danoeh/antennapod/core/service/PlayerWidgetJobService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/main/java/de/danoeh/antennapod/core/service/PlayerWidgetJobService.java b/core/src/main/java/de/danoeh/antennapod/core/service/PlayerWidgetJobService.java index 2f7806eff..2d9de1894 100644 --- a/core/src/main/java/de/danoeh/antennapod/core/service/PlayerWidgetJobService.java +++ b/core/src/main/java/de/danoeh/antennapod/core/service/PlayerWidgetJobService.java @@ -219,7 +219,7 @@ public class PlayerWidgetJobService extends SafeJobIntentService { } private String getProgressString(int position, int duration, float speed) { - if (position > 0 && duration > 0) { + if (position >= 0 && duration > 0) { TimeSpeedConverter converter = new TimeSpeedConverter(speed); position = converter.convert(position); duration = converter.convert(duration);