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
836e6d6c
Commit
836e6d6c
authored
1 year ago
by
Duncan McNamara
Committed by
Nicolas Pomepuy
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
Resume: load any playlist type when background playback is enabled
parent
d7bf10b7
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!1835
Resume: load any playlist type when background playback is enabled
Pipeline
#440138
passed with stages
in 20 minutes and 52 seconds
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
application/vlc-android/src/org/videolan/vlc/PlaybackService.kt
+6
-1
6 additions, 1 deletion
...ation/vlc-android/src/org/videolan/vlc/PlaybackService.kt
with
6 additions
and
1 deletion
application/vlc-android/src/org/videolan/vlc/PlaybackService.kt
+
6
−
1
View file @
836e6d6c
...
...
@@ -1249,7 +1249,12 @@ class PlaybackService : MediaBrowserServiceCompat(), LifecycleOwner, CoroutineSc
}
private
fun
loadLastAudioPlaylist
()
{
if
(!
AndroidDevices
.
isAndroidTv
)
loadLastPlaylist
(
PLAYLIST_TYPE_AUDIO
)
if
(!
AndroidDevices
.
isAndroidTv
)
{
// If playback in background is enabled it should load the last media of any type
// not only audio
val
playlistType
=
if
(
settings
.
getString
(
KEY_VIDEO_APP_SWITCH
,
"0"
)
==
"1"
)
PLAYLIST_TYPE_ALL
else
PLAYLIST_TYPE_AUDIO
loadLastPlaylist
(
playlistType
)
}
}
fun
loadLastPlaylist
(
type
:
Int
)
{
...
...
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