[Android] VideoPlayerActivity: UX: Extend the overlay timeout after a gesture
Edward Wang
git at videolan.org
Sun Mar 10 15:21:34 CET 2013
vlc-ports/android | branch: master | Edward Wang <edward.c.wang at compdigitec.com> | Sun Mar 10 09:52:41 2013 -0400| [44109bcfd665a2bcb26a3654671ebf91bdb9b908] | committer: Edward Wang
VideoPlayerActivity: UX: Extend the overlay timeout after a gesture
> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=44109bcfd665a2bcb26a3654671ebf91bdb9b908
---
.../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 047a2cb..2673a29 100644
--- a/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
+++ b/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
@@ -805,9 +805,9 @@ public class VideoPlayerActivity extends Activity {
break;
case MotionEvent.ACTION_MOVE:
- // No audio/brightness action if coef < 2
+ // No volume/brightness action if coef < 2
if (coef > 2) {
- // Audio (Up or Down - Right side)
+ // Volume (Up or Down - Right side)
if (!mEnableBrightnessGesture || mTouchX > (screen.widthPixels / 2)){
doVolumeTouch(y_changed);
}
@@ -815,6 +815,9 @@ public class VideoPlayerActivity extends Activity {
if (mEnableBrightnessGesture && mTouchX < (screen.widthPixels / 2)){
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();
}
// Seek (Right or Left move)
doSeekTouch(coef, xgesturesize, false);
More information about the Android
mailing list