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
13
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
f14dfa14
Commit
f14dfa14
authored
4 years ago
by
Nicolas Pomepuy
Browse files
Options
Downloads
Patches
Plain Diff
Hide play queue time indicator when playing one track
Fixes
#1610
parent
61ba4b69
No related branches found
No related tags found
1 merge request
!892
Play queue indicator improvements
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
application/vlc-android/src/org/videolan/vlc/gui/audio/AudioPlayer.kt
+4
-0
4 additions, 0 deletions
...vlc-android/src/org/videolan/vlc/gui/audio/AudioPlayer.kt
with
4 additions
and
0 deletions
application/vlc-android/src/org/videolan/vlc/gui/audio/AudioPlayer.kt
+
4
−
0
View file @
f14dfa14
...
...
@@ -314,6 +314,10 @@ class AudioPlayer : Fragment(), PlaylistAdapter.IPlayer, TextWatcher, IAudioPlay
lifecycleScope
.
launchWhenStarted
{
val
text
=
withContext
(
Dispatchers
.
Default
)
{
val
medias
=
playlistModel
.
medias
?:
return
@withContext
""
if
(
medias
.
size
<
2
)
{
withContext
(
Dispatchers
.
Main
)
{
binding
.
audioPlayProgress
.
setGone
()
}
return
@withContext
""
}
else
withContext
(
Dispatchers
.
Main
)
{
binding
.
audioPlayProgress
.
setVisible
()
}
if
(
playlistModel
.
currentMediaPosition
==
-
1
)
return
@withContext
""
val
elapsedTracksTime
=
playlistModel
.
previousTotalTime
?:
return
@withContext
""
val
totalTime
=
elapsedTracksTime
+
progress
.
time
...
...
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