Fix for highlighted seek bar on episode without chapters
This commit is contained in:
parent
ccda829f53
commit
05606507b2
|
@ -166,7 +166,7 @@ public class AudioPlayerFragment extends Fragment implements
|
||||||
|
|
||||||
float[] dividerPos = null;
|
float[] dividerPos = null;
|
||||||
|
|
||||||
if (media.getChapters() != null) {
|
if (media.getChapters() != null && !media.getChapters().isEmpty()) {
|
||||||
List<Chapter> chapters = media.getChapters();
|
List<Chapter> chapters = media.getChapters();
|
||||||
dividerPos = new float[chapters.size()];
|
dividerPos = new float[chapters.size()];
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue