Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Ewout ter Hoeven
VLC-Android
Commits
da6a987a
Commit
da6a987a
authored
Dec 20, 2017
by
Geoffrey Métais
Browse files
Fix incorrect types conversion
parent
4146a763
Changes
1
Show whitespace changes
Inline
Side-by-side
vlc-android/src/org/videolan/vlc/gui/audio/AudioPlayer.kt
View file @
da6a987a
...
@@ -244,18 +244,18 @@ class AudioPlayer : PlaybackServiceFragment(), PlaybackService.Callback, Playlis
...
@@ -244,18 +244,18 @@ class AudioPlayer : PlaybackServiceFragment(), PlaybackService.Callback, Playlis
override
fun
updateProgress
()
{
override
fun
updateProgress
()
{
if
(
mService
===
null
)
return
if
(
mService
===
null
)
return
val
time
=
mService
.
time
.
toInt
()
val
time
=
mService
.
time
val
length
=
mService
.
length
.
toInt
()
val
length
=
mService
.
length
mBinding
.
headerTime
.
text
=
Tools
.
millisToString
(
time
.
toLong
()
)
mBinding
.
headerTime
.
text
=
Tools
.
millisToString
(
time
)
mBinding
.
length
.
text
=
Tools
.
millisToString
(
length
.
toLong
()
)
mBinding
.
length
.
text
=
Tools
.
millisToString
(
length
)
mBinding
.
timeline
.
max
=
length
mBinding
.
timeline
.
max
=
length
.
toInt
()
mBinding
.
progressBar
.
max
=
length
mBinding
.
progressBar
.
max
=
length
.
toInt
()
if
(!
mPreviewingSeek
)
{
if
(!
mPreviewingSeek
)
{
mBinding
.
time
.
text
=
Tools
.
millisToString
((
if
(
mShowRemainingTime
)
time
-
length
else
time
)
.
toLong
()
)
mBinding
.
time
.
text
=
Tools
.
millisToString
((
if
(
mShowRemainingTime
)
time
-
length
else
time
))
mBinding
.
timeline
.
progress
=
time
mBinding
.
timeline
.
progress
=
time
.
toInt
()
mBinding
.
progressBar
.
progress
=
time
mBinding
.
progressBar
.
progress
=
time
.
toInt
()
}
}
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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