[Android] Immersive mode starting kitkat
Geoffrey Métais
git at videolan.org
Mon Nov 3 16:53:19 CET 2014
vlc-ports/android | branch: 1.0.x | Geoffrey Métais <geoffrey.metais at gmail.com> | Mon Nov 3 15:50:34 2014 +0100| [67c2a6d5ed6d4ef408c6f85fa36df0221094d1ee] | committer: Jean-Baptiste Kempf
Immersive mode starting kitkat
This allows touchevent to be handled direclty, and not only once system UI is visible
(cherry picked from commit 77dda4811b2d2b0b4b7840a740d0d76bb961694f)
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=67c2a6d5ed6d4ef408c6f85fa36df0221094d1ee
---
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 0a37f85..4c9e158 100644
--- a/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
+++ b/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
@@ -1920,6 +1920,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;
}
More information about the Android
mailing list