diff options
author | ByteHamster <info@bytehamster.com> | 2020-02-13 13:47:30 +0100 |
---|---|---|
committer | ByteHamster <info@bytehamster.com> | 2020-02-13 13:47:32 +0100 |
commit | 5f9c70df0f5b9a3ad81fbf3f0789ede57757babf (patch) | |
tree | bb821aa5f66d2b15bdd188f49a82b574b215e2aa /core | |
parent | cf5a876dc412e2d747af49dffc786e5f61f6e52e (diff) | |
download | AntennaPod-5f9c70df0f5b9a3ad81fbf3f0789ede57757babf.zip |
Fixed seeking when streaming
Sometimes, `media` does not know the duration. `getDuration()` loads directly from the `PlaybackService`.
Diffstat (limited to 'core')
-rw-r--r-- | core/src/main/java/de/danoeh/antennapod/core/util/playback/PlaybackController.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/src/main/java/de/danoeh/antennapod/core/util/playback/PlaybackController.java b/core/src/main/java/de/danoeh/antennapod/core/util/playback/PlaybackController.java index cb22fbcc9..15b1f4432 100644 --- a/core/src/main/java/de/danoeh/antennapod/core/util/playback/PlaybackController.java +++ b/core/src/main/java/de/danoeh/antennapod/core/util/playback/PlaybackController.java @@ -547,7 +547,7 @@ public class PlaybackController { */ public void onSeekBarStopTrackingTouch(SeekBar seekBar, float prog) { if (playbackService != null && media != null) { - playbackService.seekTo((int) (prog * media.getDuration())); + seekTo((int) (prog * getDuration())); } } |