playback: fix state restore
Wasn't using the corrected shuffle mapping
This commit is contained in:
parent
ec61ba50ec
commit
e6141b12e6
1 changed files with 4 additions and 4 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue