[Android] Video Player: fix Nav Bar not hidden sometimes

Thomas Guillem git at videolan.org
Mon Oct 6 10:52:55 CEST 2014


vlc-ports/android | branch: master | Thomas Guillem <thomas.guillem at gmail.com> | Fri Oct  3 17:42:43 2014 +0200| [c8ff3950fc755bccca3de70de5be0b21afccce37] | committer: Jean-Baptiste Kempf

Video Player: fix Nav Bar not hidden sometimes

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=c8ff3950fc755bccca3de70de5be0b21afccce37
---

 .../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);
         }
     }
 



More information about the Android mailing list