diff options
| author | 2022-10-11 12:15:52 -0700 | |
|---|---|---|
| committer | 2022-10-11 12:23:42 -0700 | |
| commit | ab3cb30aa0ea166c8bcb0531a5a47ca119a000c3 (patch) | |
| tree | 0f08783146295878e024a9010ad26deeb7769987 /libs/androidfw/StringPool.cpp | |
| parent | 58645f68bc5e88a23c1bd5e9df0093a79a1647e9 (diff) | |
Ensure no duplicates in ThemeKey
Some apps keep adding the same resources to their theme key
objects on e.g. switching dark mode. Need to be prepared to
limit the size of the arrays, otherwise theme switching gets
slower with each toggle
+ a bit more efficient native handling
Bug: 242005877
Test: manual, 10k of theme switches with no noticable slowdown
Change-Id: Icf74770bd41ebeb0a31f527ae3616de00f23b0ae
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions