[Android] Only pass SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION for jellybean or newer
Martin Storsjö
git at videolan.org
Tue Apr 16 17:14:03 CEST 2013
vlc-ports/android | branch: master | Martin Storsjö <martin at martin.st> | Tue Apr 16 18:12:57 2013 +0300| [a12edf9d192b79f3b8fa0044395bf66ae8afc5db] | committer: Martin Storsjö
Only pass SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION for jellybean or newer
Signed-off-by: Martin Storsjö <martin at martin.st>
> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=a12edf9d192b79f3b8fa0044395bf66ae8afc5db
---
.../src/org/videolan/vlc/gui/video/VideoPlayerActivity.java | 6 ++++--
1 file changed, 4 insertions(+), 2 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 146cc62..3566470 100644
--- a/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
+++ b/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
@@ -1266,12 +1266,14 @@ 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()
? View.SYSTEM_UI_FLAG_LOW_PROFILE
: View.SYSTEM_UI_FLAG_HIDE_NAVIGATION)
- : View.SYSTEM_UI_FLAG_VISIBLE) |
- (Util.hasCombBar() ? 0 : View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION));
+ : View.SYSTEM_UI_FLAG_VISIBLE) | layout);
}
private void updateOverlayPausePlay() {
More information about the Android
mailing list