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:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user