Commit 02605d9e authored by Alexandre Perraud's avatar Alexandre Perraud
Browse files

Prevent screen form turning off when ask for resume is enabled

parent 6bbfdc1a
......@@ -699,13 +699,13 @@ public class VideoPlayerActivity extends AppCompatActivity implements IVideoPlay
mediaRouterAddCallback(true);
}
mSurfaceView.setKeepScreenOn(true);
final EventHandler em = EventHandler.getInstance();
em.addHandler(mEventHandler);
loadMedia();
mSurfaceView.setKeepScreenOn(true);
// Add any selected subtitle file from the file picker
if(mSubtitleSelectedFiles.size() > 0) {
for(String file : mSubtitleSelectedFiles) {
......@@ -2941,6 +2941,7 @@ public class VideoPlayerActivity extends AppCompatActivity implements IVideoPlay
}
})
.create();
mAlertDialog.setCancelable(false);
mAlertDialog.show();
}
......
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