diff options
| author | 2025-01-13 20:34:31 +0000 | |
|---|---|---|
| committer | 2025-01-15 15:26:30 +0000 | |
| commit | 3abfc4d5894835b2d8cdaff8bb175b8643470e4f (patch) | |
| tree | 6bd5d63e7fc003d5b8ef5e5c69895c1ddaded0d2 /tools/codegen/src | |
| parent | 77fb9ee03d9374e7a7f0ca5b701520d8a2278319 (diff) | |
[SB][Notif] Don't allow call notif to also show in a promoted notif chip
Currently if an app posts a notification with CallStyle.Ongoing that
*also* meets the promoted notification criteria, the status bar would
incorrectly show 2 chips for the same notification: One because it's a
call, and another because it's promoted.
This CL:
1) Filters out call notifications from promoted notifications so there
won't be duplicate chips. (Call notifications need to take priority
over promoted notifications, which is why I'm keeping the call
notification Flow the same and doing the filtering on the other
Flow.)
2) Updates the call chip to use the notification's coloring if the call
notification also matches the promotion criteria. This makes the call
chip look like a promoted notification chip, while ensuring the call
chip still always shows the 00:01 timer.
Fixes: 388521980
Bug: 364653005
Flag: com.android.systemui.status_bar_notification_chips
Test: Post a CallStyle.Ongoing notification that's also colorized & has
FLAG_ONGOING_EVENT set -> verify only a single chip is shown. Verify
that chip uses the notification color, not the theme color.
Test: Post a CallStyle.Ongoing notification and a different promoted
notification -> verify call chip is shown first
Change-Id: I67427a4c8aa4b0d0890f9ef621e56aa87cf67b64
Diffstat (limited to 'tools/codegen/src')
0 files changed, 0 insertions, 0 deletions