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:
Anushree Ganjam committed 2024-09-11 13:56:23 -07:00
1 parent 05084e2ef3
commit fbc0f97410
10 files changed
+169 -8

No files matched your search

@@ -30,7 +30,7 @@ public class LauncherApplication extends Application {
public void onCreate() {
super.onCreate();
MainProcessInitializer.initialize(this);
mAppComponent = DaggerLauncherAppComponent.builder().build();
mAppComponent = DaggerLauncherAppComponent.builder().appContext(this).build();
}
public LauncherBaseAppComponent getAppComponent() {