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

Skip to content
Commit de0b1074 authored by Nicolo' Mazzucato's avatar Nicolo' Mazzucato Committed by Nicolò Mazzucato
Browse files

Allow multiple annotated configuration controllers in sysui

Before this change there was a single configuration controller in sysui, provided in the global scope without any annotation. However, values provided by this configuration controller are not ok to be used with secondary displays (as the source of config change is different).

This change makes it possible to create and provide in the dagger graph several instances of configurationController and ConfigurationState. The existing one is now annotated with @GlobalConfig (as it only receives updates from SystemUIApplication, and uses the application context to get the config from resources)

In follow up cls new ConfigurationControllers and ConfigurationState instances will be bound to the dagger graph to make UI components work also on different displays with the correct configs.

Bug: 363171298
Test: Simple DI refactor with no functionality change - presubmit tests and manual tries of changing config should cover this.
Flag: NONE No functionality change
Change-Id: I803273b7818a60ef6a23bbe416eda58adf8907e4
parent 61614716
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment