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 am: d3335c5eba am: fa7ad70ab7

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

Change-Id: I1920473c5aa26af313d9683903ae40341c4c11b5
This commit is contained in:
Cecilia Hong
2021-09-23 06:54:08 +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