diff options
| author | 2025-01-28 21:42:18 +0000 | |
|---|---|---|
| committer | 2025-01-31 13:45:56 -0800 | |
| commit | 391a1fc354c14634cde4c73115533a2d121e3e71 (patch) | |
| tree | 431c6eee9029e8d5d2df362bbf0f6b386ab67937 /libs/androidfw/StringPool.cpp | |
| parent | ea55a5ff58e5a8f0e56efea82bb2b9b215f5add7 (diff) | |
[SB][Notif] If there's 2 chips, make both chips as compact as possible.
The new POR is that if we have 2 active chips, we prefer seeing both
chips as icon-only (or text-only) chips instead of seeing the first chip
with icon+text and having the second chip completely hidden.
Most chips will hide their text and become icon-only. The only exception
to this is the 3-2-1 screen record countdown chip, which always shows a
single digit without an icon and will continue to do that even when
there's 2 chips.
Caveats:
- The icon-only squishing will only happen for phones in portrait; for
all other configurations, there's enough room to show 2 full-sized
chips.
- We also need to re-implement this in the Compose chips. That'll
happen in a separate CL.
Bug: 392895330
Bug: 364653005
Flag: com.android.systemui.status_bar_notification_chips
Test: Have 3-2-1 countdown chip + other chip -> verify see countdown
number & other chip with icon only
Test: Have 2 RON chips in portrait phone -> verify both are icon only
Test: Have call chip + RON chip in portrait phone -> verify both are icon only
Test: Have screen record chip + other chip in portrait phone -> verify both are icon only
Test: Have 2 chips then remove one in portrait phone -> verify first chip re-expands to
icon+text
Test: with status_bar_notification_chips OFF, have both a call and
screen record active -> verify screen record chip shows, and shows with
a timer (basically, verify squishing doesn't happen if we don't support
multiple chips)
Test: Have 2 RON chips in portrait phone then rotate -> verify chips
update to show text
Test: Have 2 RON chips on a large screen -> verify chips show text
Test: atest OngoingActivityChipsViewModelTest
Change-Id: I283d4c38b8d4f25e369fe6ab7d7fbf5a9017633c
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions