diff options
| author | 2023-08-29 16:43:01 +0100 | |
|---|---|---|
| committer | 2023-08-29 16:58:54 +0100 | |
| commit | 53aa2a3a077e2ce97646d7baca8da62719dabfe9 (patch) | |
| tree | 227207f9e012a02cc61a8ca31caec6f2ae782c46 /libs/androidfw/StringPool.cpp | |
| parent | 0edf204ad08d3f42508329642f9839d9c66668e4 (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