Skip to content
Snippets Groups Projects
Commit d470708c authored by Habib Kazemi's avatar Habib Kazemi Committed by Nicolas Pomepuy
Browse files

Update progress when jumping to a time

Fixes #1596
parent 7b1fb247
No related branches found
No related tags found
1 merge request!863Update progress when jumping to a time
Pipeline #55467 passed with stage
in 17 minutes and 59 seconds
......@@ -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()
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment