mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-03 01:16:49 +00:00
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:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user