[Android] also keep the screen on for streams

Sébastien Toque git at videolan.org
Fri Sep 21 20:23:31 CEST 2012


vlc-ports/android | branch: master | Sébastien Toque <xilasz at gmail.com> | Fri Sep 21 20:22:46 2012 +0200| [a553e334f1eeeaeca4b3afdccc6bfd90e5d1582d] | committer: Sébastien Toque

also keep the screen on for streams

> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=a553e334f1eeeaeca4b3afdccc6bfd90e5d1582d
---

 vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java b/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
index 365fd84..c3dbabf 100644
--- a/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
+++ b/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
@@ -1176,9 +1176,9 @@ public class VideoPlayerActivity extends Activity {
             dontParse = getIntent().getExtras().getBoolean("dontParse");
         }
 
+        mSurface.setKeepScreenOn(true);
         if (mLocation != null && mLocation.length() > 0 && !dontParse) {
             mLibVLC.readMedia(mLocation, false);
-            mSurface.setKeepScreenOn(true);
 
             // restore last position
             Media media = DatabaseManager.getInstance(this).getMedia(this, mLocation);



More information about the Android mailing list