commit | ab3cb30aa0ea166c8bcb0531a5a47ca119a000c3 | [log] [tgz] |
---|---|---|
author | Yurii Zubrytskyi <zyy@google.com> | Tue Oct 11 12:15:52 2022 -0700 |
committer | Yurii Zubrytskyi <zyy@google.com> | Tue Oct 11 12:23:42 2022 -0700 |
tree | 0f08783146295878e024a9010ad26deeb7769987 | |
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