Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 49f92f50 authored by Caitlin Shkuratov's avatar Caitlin Shkuratov
Browse files

[SB][Notif] Don't show text in status bar chip if < 50% of it fits.

See b/364653005#comment51 for screenshots

Bug: 364653005
Flag: com.android.systemui.status_bar_notification_chips

Test: Trigger chip with incredibly long shortCriticalText -> verify no
text shows
Test: Trigger chip with a bit of overflow shortCriticalText -> verify
text shows and fades out
Test: Trigger chip with very short shortCriticalText -> verify text
shows and chip width < max width
Test: atest ChipTextTruncationHelperTest

Change-Id: I2c7db5d7c49bea770ccff3fb8d9f4c2124b5e04b
parent ab3e9c5e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment