Add LauncherAppSingleton & LauncherActivityScope to dagger graph (3/n)
* Add ApplicationContext qualifier and binding the application context instance so that this context is available across dagger graph. * Add QuickStepModule and LoggingModule * Provide SettingsChangeLogger in dagger way. We are depending on MainThreadInitializedObject for cleanup. We need to define a way explicitly see how we can destroy singleton objects. Bug: 361850561 Test: Manual Flag: NONE Dagger Integration Change-Id: Ia10cc500edb1d88adcca540119651f59b9bc8dc8
This commit is contained in:
@@ -35,6 +35,9 @@ import java.util.function.Consumer;
|
||||
|
||||
/**
|
||||
* Utility class for defining singletons which are initiated on main thread.
|
||||
*
|
||||
* TODO(b/361850561): Do not delete MainThreadInitializedObject until we find a way to
|
||||
* unregister and understand how singleton objects are destroyed in dagger graph.
|
||||
*/
|
||||
public class MainThreadInitializedObject<T extends SafeCloseable> {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user