add nullcheck because of FireTV

This commit is contained in:
Felix 2017-04-04 01:35:18 +02:00
parent 14e31ee107
commit db949966c7

View file

@ -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