mirror of
https://github.com/AntennaPod/AntennaPod.git
synced 2025-01-04 13:03:27 +01:00
Fixed crash when creating chapters fragment
This commit is contained in:
parent
7e2fd0b1d7
commit
81eb3b7341
@ -274,7 +274,7 @@ public abstract class MediaplayerInfoActivity extends MediaplayerActivity implem
|
||||
|
||||
@Override
|
||||
boolean loadMediaInfo() {
|
||||
if (controller != null) {
|
||||
if (controller != null && controller.getMedia() != null) {
|
||||
List<Chapter> chapters = controller.getMedia().getChapters();
|
||||
boolean hasChapters = chapters != null && !chapters.isEmpty();
|
||||
pageIndicator.setDisabledPage(hasChapters ? -1 : 2);
|
||||
|
Loading…
Reference in New Issue
Block a user