diff --git a/app/src/main/java/de/danoeh/antennapod/fragment/AudioPlayerFragment.java b/app/src/main/java/de/danoeh/antennapod/fragment/AudioPlayerFragment.java index ed136af3c..0be59904d 100644 --- a/app/src/main/java/de/danoeh/antennapod/fragment/AudioPlayerFragment.java +++ b/app/src/main/java/de/danoeh/antennapod/fragment/AudioPlayerFragment.java @@ -265,7 +265,11 @@ public class AudioPlayerFragment extends Fragment implements @Override public void onBufferUpdate(float progress) { - sbPosition.setSecondaryProgress((int) (progress * sbPosition.getMax())); + if (isStreaming()) { + sbPosition.setSecondaryProgress((int) (progress * sbPosition.getMax())); + } else { + sbPosition.setSecondaryProgress(0); + } } @Override 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 8f21437b0..baf5d924f 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 @@ -743,6 +743,10 @@ public class PlaybackController { } } + public boolean isStreaming() { + return playbackService != null && playbackService.isStreaming(); + } + private void initServiceNotRunning() { if (getPlayButton() == null) { return;