Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
VLC-Android
Manage
Activity
Members
Labels
Plan
Issues
531
Issue boards
Milestones
Wiki
Code
Merge requests
14
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
VideoLAN
VLC-Android
Commits
d470708c
Commit
d470708c
authored
4 years ago
by
Habib Kazemi
Committed by
Nicolas Pomepuy
4 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Update progress when jumping to a time
Fixes #1596
parent
7b1fb247
No related branches found
No related tags found
1 merge request
!863
Update progress when jumping to a time
Pipeline
#55467
passed with stage
in 17 minutes and 59 seconds
Changes
1
Pipelines
4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
application/vlc-android/src/org/videolan/vlc/gui/dialogs/JumpToTimeDialog.kt
+3
-1
3 additions, 1 deletion
...roid/src/org/videolan/vlc/gui/dialogs/JumpToTimeDialog.kt
with
3 additions
and
1 deletion
application/vlc-android/src/org/videolan/vlc/gui/dialogs/JumpToTimeDialog.kt
+
3
−
1
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
()
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment