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
Loading
Please register or sign in to comment