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 =
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue