Fix shuffle bug with ALL_SONGS

Fix an issue where if a song was played with KEEP_SHUFFLE on the queue wouldnt actually be shuffled.
This commit is contained in:
OxygenCobalt 2021-01-11 07:15:49 -07:00
parent 6ecfd0daa0
commit d507b77d32
No known key found for this signature in database
GPG key ID: 37DBE3621FE9AD47

View file

@ -161,9 +161,9 @@ class PlaybackStateManager private constructor() {
mParent = null mParent = null
mQueue = if (shouldShuffle) { mQueue = if (shouldShuffle) {
musicStore.songs.toMutableList()
} else {
genShuffle(musicStore.songs.toMutableList(), false) genShuffle(musicStore.songs.toMutableList(), false)
} else {
musicStore.songs.toMutableList()
} }
} }
@ -198,7 +198,6 @@ class PlaybackStateManager private constructor() {
} else { } else {
orderSongsInAlbum(song.album) orderSongsInAlbum(song.album)
} }
mMode = mode
} }
} }