[Android] Video Player : Hide menu on Tablet

Alexandre Perraud git at videolan.org
Fri Oct 26 18:08:27 CEST 2012


vlc-ports/android | branch: master | Alexandre Perraud <4leyx4ndre at gmail.com> | Fri Oct 26 18:05:56 2012 +0200| [b54ab57d65736fd4f22c97ef1b4086caf08f8d01] | committer: Jean-Baptiste Kempf

Video Player : Hide menu on Tablet

SYSTEM_UI_FLAG_HIDE_NAVIGATION work only on certain device for now.

Tested on Nexus 7 and Archos 97

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

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

 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 d399bb3..963fc7f 100644
--- a/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
+++ b/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
@@ -1127,7 +1127,7 @@ public class VideoPlayerActivity extends Activity {
         if (Util.isHoneycombOrLater()) {
             if (dim) {
                 mSurface.setSystemUiVisibility(Util.hasNavBar()
-                        ? View.SYSTEM_UI_FLAG_HIDE_NAVIGATION
+                        ? View.SYSTEM_UI_FLAG_HIDE_NAVIGATION|View.SYSTEM_UI_FLAG_LOW_PROFILE
                         : View.SYSTEM_UI_FLAG_LOW_PROFILE);
             } else {
                 mSurface.setSystemUiVisibility(View.SYSTEM_UI_FLAG_VISIBLE);



More information about the Android mailing list