Don't crash when switching from audio to video player
This commit is contained in:
parent
d03c85a72f
commit
495df46ba4
|
@ -62,7 +62,7 @@ public class ChaptersFragment extends ListFragment implements AudioplayerContent
|
|||
|
||||
@Override
|
||||
public void onMediaChanged(Playable media) {
|
||||
if(this.media == media) {
|
||||
if(this.media == media || adapter == null) {
|
||||
return;
|
||||
}
|
||||
this.media = media;
|
||||
|
|
Loading…
Reference in New Issue