Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
VideoLAN
VLC-Android
Commits
d470708c
Commit
d470708c
authored
Jan 01, 2021
by
Habib Kazemi
Committed by
Nicolas Pomepuy
Jan 05, 2021
Browse files
Update progress when jumping to a time
Fixes
#1596
parent
7b1fb247
Pipeline
#55467
passed with stage
in 17 minutes and 59 seconds
Changes
1
Pipelines
4
Hide whitespace changes
Inline
Side-by-side
application/vlc-android/src/org/videolan/vlc/gui/dialogs/JumpToTimeDialog.kt
View file @
d470708c
...
...
@@ -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
()
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment