Fixed playing single track in empty playlist
This commit is contained in:
parent
961c726da8
commit
9546bdeab5
|
@ -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? {
|
||||
|
|
Loading…
Reference in New Issue