Skip to content
Snippets Groups Projects
Commit b8eda505 authored by Geoffrey Métais's avatar Geoffrey Métais
Browse files

VideoPlayerActivity prevent NPE on switch to popup

parent e4a0c157
No related branches found
No related tags found
No related merge requests found
......@@ -601,8 +601,11 @@ public class VideoPlayerActivity extends AppCompatActivity implements IVLCVout.C
if (Permissions.canDrawOverlays(this)) {
mSwitchingView = true;
mSwitchToPopup = true;
final MediaWrapper mw = mService.getCurrentMediaWrapper();
if (mw == null)
return;
if (mService != null && !mService.isPlaying())
mService.getCurrentMediaWrapper().addFlags(MediaWrapper.MEDIA_PAUSED);
mw.addFlags(MediaWrapper.MEDIA_PAUSED);
cleanUI();
exitOK();
} else
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment