summaryrefslogtreecommitdiff
path: root/libs/androidfw/StringPool.cpp
diff options
context:
space:
mode:
author Anton Potapov <apotapov@google.com> 2023-08-29 16:43:01 +0100
committer Anton Potapov <apotapov@google.com> 2023-08-29 16:58:54 +0100
commit53aa2a3a077e2ce97646d7baca8da62719dabfe9 (patch)
tree227207f9e012a02cc61a8ca31caec6f2ae782c46 /libs/androidfw/StringPool.cpp
parent0edf204ad08d3f42508329642f9839d9c66668e4 (diff)
Precalculate lazy fields on component initialization.
This doesn't actually update the logic, because the component is a singleton and gets the feature in the constructor. So the value would never change at the run time. But the creation of the controllers in the constructor would limit the concurrency to the component creation. Test: manual: open Device Controls with enabled feature Test: manual: run the device with disabled feature Test: atest ControlsComponentTest Bug: 295495878 Change-Id: I209e799294d3fce4a97650e0074b1c726b8630d5
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions