mirror of
https://github.com/ultrasonic/ultrasonic
synced 2025-02-14 10:40:55 +01:00
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…
x
Reference in New Issue
Block a user