Commit a553e334 authored by Sébastien Toque's avatar Sébastien Toque
Browse files

also keep the screen on for streams

parent 0059fd53
...@@ -1176,9 +1176,9 @@ public class VideoPlayerActivity extends Activity { ...@@ -1176,9 +1176,9 @@ public class VideoPlayerActivity extends Activity {
dontParse = getIntent().getExtras().getBoolean("dontParse"); dontParse = getIntent().getExtras().getBoolean("dontParse");
} }
mSurface.setKeepScreenOn(true);
if (mLocation != null && mLocation.length() > 0 && !dontParse) { if (mLocation != null && mLocation.length() > 0 && !dontParse) {
mLibVLC.readMedia(mLocation, false); mLibVLC.readMedia(mLocation, false);
mSurface.setKeepScreenOn(true);
// restore last position // restore last position
Media media = DatabaseManager.getInstance(this).getMedia(this, mLocation); Media media = DatabaseManager.getInstance(this).getMedia(this, mLocation);
......
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