[Android] VideoPlayerActivity: don't affect devices w/o navbar

Edward Wang git at videolan.org
Sun Mar 10 21:34:48 CET 2013


vlc-ports/android | branch: master | Edward Wang <edward.c.wang at compdigitec.com> | Sun Mar 10 16:24:04 2013 -0400| [0c4c2640caf9cc5891af2a9763cb2621b8a2a7cc] | committer: Edward Wang

VideoPlayerActivity: don't affect devices w/o navbar

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

 .../src/org/videolan/vlc/gui/video/VideoPlayerActivity.java     |    7 +++++--
 1 file changed, 5 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 2673a29..6d7a244 100644
--- a/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
+++ b/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
@@ -816,8 +816,11 @@ public class VideoPlayerActivity extends Activity {
                     doBrightnessTouch(y_changed);
                 }
                 // Extend the overlay for a little while, so that it doesn't
-                // disappear on the user if more adjustment is needed.
-                showOverlay();
+                // disappear on the user if more adjustment is needed. This
+                // is because on devices with soft navigation (e.g. Galaxy
+                // Nexus), gestures can't be made without activating the UI.
+                if(Util.hasNavBar())
+                    showOverlay();
             }
             // Seek (Right or Left move)
             doSeekTouch(coef, xgesturesize, false);



More information about the Android mailing list