mirror of
https://github.com/ultrasonic/ultrasonic
synced 2025-02-20 21:50:47 +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,
|
shuffle = false,
|
||||||
newPlaylist = false
|
newPlaylist = false
|
||||||
)
|
)
|
||||||
mediaPlayerController.next()
|
if (mediaPlayerController.playlistSize > 1) mediaPlayerController.next()
|
||||||
|
else mediaPlayerController.play()
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun <T> callWithErrorHandling(function: () -> T): T? {
|
private fun <T> callWithErrorHandling(function: () -> T): T? {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user