summaryrefslogtreecommitdiff
path: root/cmds/bootanimation/BootAnimation.cpp
diff options
context:
space:
mode:
author amehfooz <amehfooz@google.com> 2025-02-02 17:12:11 +0000
committer amehfooz <amehfooz@google.com> 2025-02-02 17:12:11 +0000
commite965fa1600c878ad36717540d560fb8e9731c955 (patch)
tree792f19223cca558e194fe95fc10ba3ee72bc8fc1 /cmds/bootanimation/BootAnimation.cpp
parent81f32c32d30b95db5e62da10b83c9a4bf7bc305a (diff)
[SB] Only show composable chips when there is enough space
This CL adds custom layout modifiers for OngoingActivityChip and ChipContent to ensure that they are only shown if there is enough width available in the status bar. For timers, the entire text needs to have enough space. For text, at least 50% of it must be visible. Also, consolidates existing ChipText logic into ChipContent so we do not need to make any of the modifiers public. Bug: b/390530157 Flag: com.android.systemui.status_bar_chips_modernization Test: Make sure the chips are sized correctly based on available width. Test video provided in b/390530157 comment#4 Change-Id: I74ca45f96a3722482c7ae5282cccb7e895423f6e
Diffstat (limited to 'cmds/bootanimation/BootAnimation.cpp')
0 files changed, 0 insertions, 0 deletions