From 05606507b24c694324f359696cdc408f3ab1833d Mon Sep 17 00:00:00 2001 From: Jonas Date: Tue, 15 Jun 2021 22:58:31 +0200 Subject: [PATCH] Fix for highlighted seek bar on episode without chapters --- .../java/de/danoeh/antennapod/fragment/AudioPlayerFragment.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 64cbaa023..21a1d2039 100644 --- a/app/src/main/java/de/danoeh/antennapod/fragment/AudioPlayerFragment.java +++ b/app/src/main/java/de/danoeh/antennapod/fragment/AudioPlayerFragment.java @@ -166,7 +166,7 @@ public class AudioPlayerFragment extends Fragment implements float[] dividerPos = null; - if (media.getChapters() != null) { + if (media.getChapters() != null && !media.getChapters().isEmpty()) { List chapters = media.getChapters(); dividerPos = new float[chapters.size()];