diff options
| author | 2024-12-30 22:24:16 +0000 | |
|---|---|---|
| committer | 2025-01-08 20:56:41 +0000 | |
| commit | 33db676d4d993602120eadd550324d15d7df452d (patch) | |
| tree | fb465642419ddba0e48609084e437f981ce91f5a /libs/androidfw/ApkParsing.cpp | |
| parent | 80dbd94bf8b314f2a63b5672906b135712e23b5a (diff) | |
[SB] Reset chip width calculations on rotation or unfold.
A user may not have enough room for 2 chips in portrait, but does have
room for 2 chips in landscape or when unfolded. This CL updates the
secondary chip to re-calculate if it has enough space whenever the screen
bounds change, which happens on rotation or unfold.
It also updates the chip text to re-calculate if it has enough space.
Fixes: 385740234
Fixes: 385740683
Fixes: 351069457
Bug: 364653005
Flag: com.android.systemui.status_bar_notification_chips
Test: Trigger 2 chips where only 1 chip fits in portrait, then rotate to
landscape -> verify 2nd chip shows. Rotate back to portrait -> verify
2nd chip hides again
Test: Show timer chip on large font size then decrease font size or
rotate to landscape -> verify timer shows again
Test: With small font size, trigger 2 chips and see 2 chips. Increase
font size -> verify 2nd chip shrinks and disappears at largest font
size. Decrease font size -> verify 2nd chip re-shows and shows with text
if there's enough room
Change-Id: I21f6ed401c8f882f96611f164bf55500699c8be6
Diffstat (limited to 'libs/androidfw/ApkParsing.cpp')
0 files changed, 0 insertions, 0 deletions