[Android] [PATCH 2/2] Video Player: fix Nav Bar not hidden sometimes
Thomas Guillem
thomas.guillem at gmail.com
Fri Oct 3 17:42:43 CEST 2014
---
.../src/org/videolan/vlc/gui/video/VideoPlayerActivity.java | 7 +++++++
1 file changed, 7 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 27c9507..b1888a4 100644
--- a/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
+++ b/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
@@ -1808,6 +1808,13 @@ public class VideoPlayerActivity extends Activity implements IVideoPlayer {
mMenu.setVisibility(View.INVISIBLE);
mShowing = false;
dimStatusBar(true);
+ } else if (!fromUser) {
+ /*
+ * Try to hide the Nav Bar again.
+ * It seems that you can't hide the Nav Bar if you previously
+ * showed it in the last 1-2 seconds.
+ */
+ dimStatusBar(true);
}
}
--
2.1.0
More information about the Android
mailing list