playback: fix state restore
Wasn't using the corrected shuffle mapping
This commit is contained in:
@@ -766,12 +766,12 @@ class PlaybackStateManagerImpl @Inject constructor() : PlaybackStateManager {
|
|||||||
val rawQueue =
|
val rawQueue =
|
||||||
RawQueue(
|
RawQueue(
|
||||||
heap = heap,
|
heap = heap,
|
||||||
shuffledMapping = savedState.shuffledMapping,
|
shuffledMapping = shuffledMapping,
|
||||||
heapIndex =
|
heapIndex =
|
||||||
if (savedState.shuffledMapping.isNotEmpty()) {
|
if (shuffledMapping.isNotEmpty()) {
|
||||||
savedState.shuffledMapping[savedState.index]
|
shuffledMapping[savedState.index]
|
||||||
} else {
|
} else {
|
||||||
savedState.index
|
index
|
||||||
})
|
})
|
||||||
|
|
||||||
val oldStateMirror = stateMirror
|
val oldStateMirror = stateMirror
|
||||||
|
|||||||
Reference in New Issue
Block a user