Skip to content
Snippets Groups Projects
Commit 836e6d6c authored by Duncan McNamara's avatar Duncan McNamara Committed by Nicolas Pomepuy
Browse files

Resume: load any playlist type when background playback is enabled

parent d7bf10b7
No related branches found
No related tags found
1 merge request!1835Resume: load any playlist type when background playback is enabled
Pipeline #440138 passed with stages
in 20 minutes and 52 seconds
......@@ -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) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment