[Android] Revert "Set SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION in the video player"

Martin Storsjö git at videolan.org
Tue Apr 16 17:49:40 CEST 2013


vlc-ports/android | branch: master | Martin Storsjö <martin at martin.st> | Tue Apr 16 18:44:18 2013 +0300| [9d08e7628515efcad9048e8a3cad2f24aa1c8db1] | committer: Martin Storsjö

Revert "Set SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION in the video player"

This reverts commit a12edf9d192b79f3b8fa0044395bf66ae8afc5db and
a8822b341483da26338926058831c2076e2377cd.

If this flag is set, the layout needs to be adjusted to make sure
that the vlc controls aren't laid out under the navigation bar.
That is, we'd want the effect of this flag on the video surface,
but not on the rest of the video player UI.

Signed-off-by: Martin Storsjö <martin at martin.st>

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

 .../src/org/videolan/vlc/gui/video/VideoPlayerActivity.java     |    7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

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 3566470..a6cbec0 100644
--- a/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
+++ b/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
@@ -1266,14 +1266,11 @@ public class VideoPlayerActivity extends Activity {
     private void dimStatusBar(boolean dim) {
         if (!Util.isHoneycombOrLater() || !Util.hasNavBar())
             return;
-        int layout = 0;
-        if (!Util.hasCombBar() && Util.isJellyBeanOrLater())
-            layout = View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION;
         mSurface.setSystemUiVisibility(
-                (dim ? (Util.hasCombBar()
+                dim ? (Util.hasCombBar()
                         ? View.SYSTEM_UI_FLAG_LOW_PROFILE
                         : View.SYSTEM_UI_FLAG_HIDE_NAVIGATION)
-                    : View.SYSTEM_UI_FLAG_VISIBLE) | layout);
+                    : View.SYSTEM_UI_FLAG_VISIBLE);
     }
 
     private void updateOverlayPausePlay() {



More information about the Android mailing list