Do not expand player when queue is restored (#396)

This commit is contained in:
vfsfitvnm
2022-10-10 11:48:58 +02:00
parent ff611d792e
commit fae96d1114
3 changed files with 11 additions and 5 deletions

View File

@@ -377,7 +377,9 @@ class PlayerService : InvincibleService(), Player.Listener, PlaybackStatsListene
mediaItem.mediaItem.buildUpon()
.setUri(mediaItem.mediaItem.mediaId)
.setCustomCacheKey(mediaItem.mediaItem.mediaId)
.build()
.build().apply {
mediaMetadata.extras?.putBoolean("isFromPersistentQueue", true)
}
},
index,
queuedSong[index].position ?: C.TIME_UNSET