Sets media recommendations's isPlaying status to false instead of null

so the card sorting can be consistent.

Fixes: 194192751
Test: Local builds
Change-Id: I9ed74c0acd5cdbb07be6dc1fd151668298241acb
This commit is contained in:
cecilia
2021-09-14 14:46:38 -04:00
committed by Cecilia Hong
parent 7137513e4b
commit 55945b021b

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