Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 53aa2a3a authored by Anton Potapov's avatar Anton Potapov
Browse files

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
parent 0edf204a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment