mirror of
https://github.com/clangen/musikcube.git
synced 2025-01-29 03:32:42 +00:00
Fix a crash in StreamingPlaybackService.resolveNextIndex when the queue
size is 1 and random is enabled. Oops.
This commit is contained in:
parent
b96934dbfc
commit
136076cc3e
@ -574,7 +574,7 @@ class StreamingPlaybackService(context: Context) : IPlaybackService {
|
||||
|
||||
private fun resolveNextIndex(currentIndex: Int, count: Int, userInitiated: Boolean): Int {
|
||||
if (shuffled) { /* our shuffle matches actually random for now. */
|
||||
if (count <= 0) {
|
||||
if (count <= 1) {
|
||||
return currentIndex
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user