Fixed playing single track in empty playlist

This commit is contained in:
Nite 2021-07-19 15:31:52 +02:00
parent 961c726da8
commit 9546bdeab5
No known key found for this signature in database
GPG Key ID: 1D1AD59B1C6386C1
1 changed files with 2 additions and 1 deletions

View File

@ -1085,7 +1085,8 @@ class AutoMediaBrowserService : MediaBrowserServiceCompat() {
shuffle = false,
newPlaylist = false
)
mediaPlayerController.next()
if (mediaPlayerController.playlistSize > 1) mediaPlayerController.next()
else mediaPlayerController.play()
}
private fun <T> callWithErrorHandling(function: () -> T): T? {