[Android] Update progress when jumping to a time

Habib Kazemi git at videolan.org
Tue Jan 5 08:12:45 UTC 2021


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

Update progress when jumping to a time

Fixes #1596

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

 .../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