Fix a crash in StreamingPlaybackService.resolveNextIndex when the queue

size is 1 and random is enabled. Oops.
This commit is contained in:
casey langen 2018-01-23 19:00:07 -08:00
parent b96934dbfc
commit 136076cc3e

View File

@ -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
}