[Android] Video player: Fix navbar visibility flag
Geoffrey Métais
git at videolan.org
Wed Apr 10 16:17:05 CEST 2019
vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Wed Apr 10 16:11:12 2019 +0200| [85907b9d685071b428089c67cba68fe728260e3c] | committer: Geoffrey Métais
Video player: Fix navbar visibility flag
> https://code.videolan.org/videolan/vlc-android/commit/85907b9d685071b428089c67cba68fe728260e3c
---
vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java | 4 ++--
1 file changed, 2 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 3cd8cd347..f6bceae8d 100644
--- a/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
+++ b/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
@@ -2356,10 +2356,10 @@ public class VideoPlayerActivity extends AppCompatActivity implements IPlaybackS
else mActionBar.show();
int visibility = View.SYSTEM_UI_FLAG_LAYOUT_STABLE | View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN;
- int navbar = View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION;
+ int navbar = 0;
if (dim || mIsLocked) {
getWindow().addFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN);
- navbar |= View.SYSTEM_UI_FLAG_LOW_PROFILE|View.SYSTEM_UI_FLAG_HIDE_NAVIGATION;
+ navbar |= View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION |View.SYSTEM_UI_FLAG_LOW_PROFILE|View.SYSTEM_UI_FLAG_HIDE_NAVIGATION;
if (AndroidUtil.isKitKatOrLater) visibility |= View.SYSTEM_UI_FLAG_IMMERSIVE;
visibility |= View.SYSTEM_UI_FLAG_FULLSCREEN;
} else {
More information about the Android
mailing list