diff options
| author | 2025-03-07 21:35:26 +0000 | |
|---|---|---|
| committer | 2025-03-07 21:40:48 +0000 | |
| commit | 4304e2569787d82c6eb432aae540e4fbad22bbe7 (patch) | |
| tree | 0d60fd7309c8bdd210e20f114c579aec14ab1fc9 /libs/androidfw/StringPool.cpp | |
| parent | bc85e45d67ee6f7a1e20666c5b5dfc6672c71bf7 (diff) | |
[SB][Battery] Protect against UnifiedBattery using too-big insets.
`inset` will inset the drawing space on both sides, which means that if
you inset by more than half of the available space, there's negative
room available and Compose will throw an exception.
Protect against that by never asking for an inset of more than half.
Bug: 400246091
Flag: com.android.settingslib.flags.new_status_bar_icons
Test: battery icon still renders correctly
Change-Id: Idcc41e19fe2268418c7f7bdc83acc2fe8aa71e04
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions