mirror of
https://github.com/NiciDieNase/chaosflix
synced 2024-11-26 22:20:24 +00:00
add nullcheck because of FireTV
This commit is contained in:
parent
14e31ee107
commit
db949966c7
1 changed files with 5 additions and 1 deletions
|
@ -100,7 +100,11 @@ public class PlaybackHelper extends PlaybackControlGlue {
|
|||
|
||||
private void setup() {
|
||||
mMediaController = fragment.getActivity().getMediaController();
|
||||
mTransportControls = mMediaController.getTransportControls();
|
||||
if(mMediaController != null){
|
||||
mTransportControls = mMediaController.getTransportControls();
|
||||
} else {
|
||||
Log.d(TAG,"Could not get MediaController");
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in a new issue