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

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15844857

Change-Id: I2a4e8ef49194c3346d78e70b73a40be20e9733e4
This commit is contained in:
Cecilia Hong
2021-09-22 17:18:06 +00:00
committed by Automerger Merge Worker

View File

@@ -857,7 +857,8 @@ internal object MediaPlayerData {
) {
shouldPrioritizeSs = shouldPrioritize
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)
mediaPlayers.put(sortKey, player)
smartspaceMediaData = data