playback: fix state restore

Wasn't using the corrected shuffle mapping
This commit is contained in:
Alexander Capehart
2024-01-16 13:25:03 -07:00
parent ec61ba50ec
commit e6141b12e6
@@ -766,12 +766,12 @@ class PlaybackStateManagerImpl @Inject constructor() : PlaybackStateManager {
val rawQueue =
RawQueue(
heap = heap,
shuffledMapping = savedState.shuffledMapping,
shuffledMapping = shuffledMapping,
heapIndex =
if (savedState.shuffledMapping.isNotEmpty()) {
savedState.shuffledMapping[savedState.index]
if (shuffledMapping.isNotEmpty()) {
shuffledMapping[savedState.index]
} else {
savedState.index
index
})
val oldStateMirror = stateMirror