Commit 32ae2ebe authored by Geoffrey Métais's avatar Geoffrey Métais

Video player: Prevent NPE

parent 08375f29
...@@ -2310,7 +2310,7 @@ public class VideoPlayerActivity extends AppCompatActivity implements IPlaybackS ...@@ -2310,7 +2310,7 @@ public class VideoPlayerActivity extends AppCompatActivity implements IPlaybackS
if(!mIsTv && !AndroidDevices.isChromeBook) if(!mIsTv && !AndroidDevices.isChromeBook)
mOrientationToggle.setVisibility(View.VISIBLE); mOrientationToggle.setVisibility(View.VISIBLE);
} else { } else if (mService != null) {
mHudBinding.setProgress(mService.getPlaylistManager().getPlayer().getProgress()); mHudBinding.setProgress(mService.getPlaylistManager().getPlayer().getProgress());
mHudBinding.setLifecycleOwner(this); mHudBinding.setLifecycleOwner(this);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment