Merge "Sets media recommendations's isPlaying status to false instead of null so the card sorting can be consistent." into sc-qpr1-dev

This commit is contained in:
Cecilia Hong
2021-09-22 17:04:54 +00:00
committed by Android (Google) Code Review

View File

@@ -857,7 +857,8 @@ internal object MediaPlayerData {
) { ) {
shouldPrioritizeSs = shouldPrioritize shouldPrioritizeSs = shouldPrioritize
removeMediaPlayer(key) removeMediaPlayer(key)
val sortKey = MediaSortKey(isSsMediaRec = true, EMPTY, clock.currentTimeMillis()) val sortKey = MediaSortKey(/* isSsMediaRec= */ true,
EMPTY.copy(isPlaying = false), clock.currentTimeMillis())
mediaData.put(key, sortKey) mediaData.put(key, sortKey)
mediaPlayers.put(sortKey, player) mediaPlayers.put(sortKey, player)
smartspaceMediaData = data smartspaceMediaData = data