diff options
| author | 2025-02-19 16:10:21 -0800 | |
|---|---|---|
| committer | 2025-02-19 16:10:21 -0800 | |
| commit | 1849ebde4340cf0f859f64f334a732ca0ba34f41 (patch) | |
| tree | 150e64872b9bcf0d69eed0e77beb4c6f4d7bbb36 | |
| parent | bbf6d842b2800e09be01b7eae9a2863434f5da34 (diff) | |
| parent | e7412755f9b52366b6891d2e1ee40cbdbfeead4b (diff) | |
Merge "Only show paused and active media on the hub" into main
| -rw-r--r-- | packages/SystemUI/src/com/android/systemui/communal/ui/viewmodel/CommunalViewModel.kt | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/communal/ui/viewmodel/CommunalViewModel.kt b/packages/SystemUI/src/com/android/systemui/communal/ui/viewmodel/CommunalViewModel.kt index cce1ae1a2947..6473b1c30586 100644 --- a/packages/SystemUI/src/com/android/systemui/communal/ui/viewmodel/CommunalViewModel.kt +++ b/packages/SystemUI/src/com/android/systemui/communal/ui/viewmodel/CommunalViewModel.kt @@ -237,7 +237,15 @@ constructor( with(mediaHost) { expansion = MediaHostState.EXPANDED expandedMatchesParentHeight = true - showsOnlyActiveMedia = false + if (v2FlagEnabled()) { + // Only show active media to match lock screen, not resumable media, which can + // persist + // for up to 2 days. + showsOnlyActiveMedia = true + } else { + // Maintain old behavior on tablet until V2 flag rolls out. + showsOnlyActiveMedia = false + } falsingProtectionNeeded = false disablePagination = true init(MediaHierarchyManager.LOCATION_COMMUNAL_HUB) |