[Android] VideoPlayer: force screen ON

Thomas Guillem git at videolan.org
Wed Oct 14 15:21:21 CEST 2015


vlc-ports/android | branch: master | Thomas Guillem <thomas at gllm.fr> | Wed Oct 14 15:21:01 2015 +0200| [ad68834076defa48e091b9993ec89364c3480096] | committer: Thomas Guillem

VideoPlayer: force screen ON

Before, a FULL_WAKE_LOCK was used from VideoPlayer but it was removed when it
was merged with PlaybackService.

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

 vlc-android/res/layout/player.xml |    5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/vlc-android/res/layout/player.xml b/vlc-android/res/layout/player.xml
index 2b7d37a..fe7e383 100644
--- a/vlc-android/res/layout/player.xml
+++ b/vlc-android/res/layout/player.xml
@@ -2,7 +2,8 @@
 <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
     xmlns:tools="http://schemas.android.com/tools"
     android:layout_width="fill_parent"
-    android:layout_height="fill_parent" >
+    android:layout_height="fill_parent"
+    android:keepScreenOn="true" >
 
     <!--
      the double FrameLayout is necessary here to do cropping on the bottom right
@@ -122,4 +123,4 @@
 
     </RelativeLayout>
 
-</RelativeLayout>
\ No newline at end of file
+</RelativeLayout>



More information about the Android mailing list