[Android] [PATCH] Immersive mode starting kitkat
Geoffrey Métais
geoffrey.metais at gmail.com
Mon Nov 3 15:55:57 CET 2014
This allows touchevent to be handled direclty, and not only once system UI is visible
---
vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java | 2 ++
1 file changed, 2 insertions(+)
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 50036ec..0ffa3e9 100644
--- a/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
+++ b/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
@@ -1971,6 +1971,8 @@ public class VideoPlayerActivity extends Activity implements IVideoPlayer {
visibility |= View.SYSTEM_UI_FLAG_LOW_PROFILE;
if (!AndroidDevices.hasCombBar()) {
visibility |= View.SYSTEM_UI_FLAG_HIDE_NAVIGATION;
+ if (LibVlcUtil.isKitKatOrLater())
+ visibility |= View.SYSTEM_UI_FLAG_IMMERSIVE;
if (mOverlayUseStatusBar)
visibility |= View.SYSTEM_UI_FLAG_FULLSCREEN;
}
--
1.9.1
More information about the Android
mailing list