diff options
| author | 2021-09-14 14:46:38 -0400 | |
|---|---|---|
| committer | 2021-09-21 18:17:05 +0000 | |
| commit | 55945b021bfa1b3dce56fb3abae987dbbea98e57 (patch) | |
| tree | 3b935a3f8231fdadf95a8e57275c1cb2c02ab9f8 | |
| parent | 7137513e4baada85927d6660d2103516e30909df (diff) | |
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
| -rw-r--r-- | packages/SystemUI/src/com/android/systemui/media/MediaCarouselController.kt | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/media/MediaCarouselController.kt b/packages/SystemUI/src/com/android/systemui/media/MediaCarouselController.kt index db5dbb0263c8..4fef79c6abf5 100644 --- a/packages/SystemUI/src/com/android/systemui/media/MediaCarouselController.kt +++ b/packages/SystemUI/src/com/android/systemui/media/MediaCarouselController.kt @@ -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 |