[Android] Improve text feedback on video seek

Geoffrey Métais git at videolan.org
Tue May 16 15:42:56 CEST 2017


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Tue May 16 14:48:36 2017 +0200| [8af47305a5056cfbc04d6eaef3c6edf9b3413c46] | committer: Geoffrey Métais

Improve text feedback on video seek

> https://code.videolan.org/videolan/vlc-android/commit/8af47305a5056cfbc04d6eaef3c6edf9b3413c46
---

 .../src/org/videolan/vlc/gui/video/VideoPlayerActivity.java      | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

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 b97b2c4..a7a1ef2 100644
--- a/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
+++ b/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
@@ -2661,7 +2661,14 @@ public class VideoPlayerActivity extends AppCompatActivity implements IVLCVout.C
         long position = getTime() + delta;
         if (position < 0) position = 0;
             seek(position);
-        showInfo(Tools.millisToString(mService.getTime())+"/"+Tools.millisToString(mService.getLength()), 1000);
+        StringBuilder sb = new StringBuilder();
+        if (delta > 0f)
+            sb.append('+');
+        sb.append((int)(delta/1000f))
+                .append("s (")
+                .append(Tools.millisToString(mService.getTime()))
+                .append(')');
+        showInfo(sb.toString(), 1000);
     }
 
     private void initSeekButton() {



More information about the Android mailing list