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

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

Change-Id: I060d3d275332821429a89fdcda9dc73bd41c3ce4
This commit is contained in:
Cecilia Hong
2021-09-23 05:36:33 +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