[Android] Update progress when jumping to a time

Habib Kazemi git at videolan.org
Wed Jan 20 09:54:27 UTC 2021


vlc-android | branch: 3.3.x | Habib Kazemi <kazemihabib1996 at gmail.com> | Fri Jan  1 10:43:49 2021 +0330| [7e09a784b916f1b0c7fc7afd4b877ed4979f383c] | committer: Nicolas Pomepuy

Update progress when jumping to a time

Fixes #1596

(cherry picked from commit d470708c97ff9e55d78b981582456166c7f63711)

> https://code.videolan.org/videolan/vlc-android/commit/7e09a784b916f1b0c7fc7afd4b877ed4979f383c
---

 .../vlc-android/src/org/videolan/vlc/gui/dialogs/JumpToTimeDialog.kt  | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/application/vlc-android/src/org/videolan/vlc/gui/dialogs/JumpToTimeDialog.kt b/application/vlc-android/src/org/videolan/vlc/gui/dialogs/JumpToTimeDialog.kt
index aa67f952c..11ba36e83 100644
--- a/application/vlc-android/src/org/videolan/vlc/gui/dialogs/JumpToTimeDialog.kt
+++ b/application/vlc-android/src/org/videolan/vlc/gui/dialogs/JumpToTimeDialog.kt
@@ -37,7 +37,9 @@ class JumpToTimeDialog : PickTimeFragment() {
         val hours = if (hours != "") java.lang.Long.parseLong(hours) * HOURS_IN_MICROS else 0L
         val minutes = if (minutes != "") java.lang.Long.parseLong(minutes) * MINUTES_IN_MICROS else 0L
         val seconds = if (seconds != "") java.lang.Long.parseLong(seconds) * SECONDS_IN_MICROS else 0L
-        playbackService.time = (hours + minutes + seconds) / 1000L //Time in ms
+        val newTime = (hours + minutes + seconds) / 1000L //Time in ms
+        playbackService.time = newTime
+        playbackService.playlistManager.player.updateProgress(newTime)
         dismiss()
     }
 



More information about the Android mailing list