Fix for highlighted seek bar on episode without chapters

This commit is contained in:
Jonas 2021-06-15 22:58:31 +02:00
parent ccda829f53
commit 05606507b2
1 changed files with 1 additions and 1 deletions

View File

@ -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<Chapter> chapters = media.getChapters();
dividerPos = new float[chapters.size()];