[Android] Immersive mode starting kitkat
Geoffrey Métais
git at videolan.org
Mon Nov 3 16:05:21 CET 2014
vlc-ports/android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Mon Nov 3 15:50:34 2014 +0100| [77dda4811b2d2b0b4b7840a740d0d76bb961694f] | committer: Geoffrey Métais
Immersive mode starting kitkat
This allows touchevent to be handled direclty, and not only once system UI is visible
> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=77dda4811b2d2b0b4b7840a740d0d76bb961694f
---
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;
}
More information about the Android
mailing list