Skip to content
Snippets Groups Projects
Commit 66c5b0aa authored by Geoffrey Métais's avatar Geoffrey Métais Committed by Nicolas Pomepuy
Browse files

Playback: Preserve 'play as audio' state

Fix #1101


(cherry picked from commit ba9bb273)
parent 85ebd5c6
No related branches found
No related tags found
No related merge requests found
......@@ -200,7 +200,6 @@ class PlaylistManager(val service: PlaybackService) : MediaWrapperList.EventList
stop()
return
}
videoBackground = videoBackground || (!player.isVideoPlaying() && player.canSwitchToVideo())
launch { playIndex(currentIndex) }
}
......@@ -266,6 +265,7 @@ class PlaylistManager(val service: PlaybackService) : MediaWrapperList.EventList
}
suspend fun playIndex(index: Int, flags: Int = 0) {
videoBackground = videoBackground || (!player.isVideoPlaying() && player.canSwitchToVideo())
if (mediaList.size() == 0) {
Log.w(TAG, "Warning: empty media list, nothing to play !")
return
......
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