[Android] Seek gesture : show jump size

Alexandre Perraud git at videolan.org
Mon Aug 13 18:32:22 CEST 2012


android | branch: master | Alexandre Perraud <4leyx4ndre at gmail.com> | Mon Aug 13 18:16:59 2012 +0200| [04b66b08f558784be2799cbe17262fc38935c794] | committer: Jean-Baptiste Kempf

Seek gesture : show jump size

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

> http://git.videolan.org/gitweb.cgi/android.git/?a=commit;h=04b66b08f558784be2799cbe17262fc38935c794
---

 vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java |    1 +
 1 file changed, 1 insertion(+)

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 be8033c..f8b6d3f 100644
--- a/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
+++ b/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
@@ -696,6 +696,7 @@ public class VideoPlayerActivity extends Activity {
                 int jump = (int) (600000 * Math.pow(
                         (x_changed / screen.widthPixels), 3));
                 mPlayerControlListener.onSeek(jump);
+                showInfo(String.format("%s%ss", jump >= 0 ? "+" : "", Util.millisToString(jump)),1000);
             }
             break;
         }



More information about the Android mailing list