mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-03 01:16:49 +00:00
Setup Dagger for Launcher (1/n)
Bug: 361850561 Test: Manual Flag: NONE Dagger Integration Change-Id: Idbe19f1aa747f519417e21fe8a23a41c52ececc1
This commit is contained in:
@@ -17,14 +17,23 @@ package com.android.launcher3;
|
||||
|
||||
import android.app.Application;
|
||||
|
||||
import com.android.launcher3.dagger.DaggerLauncherAppComponent;
|
||||
import com.android.launcher3.dagger.LauncherBaseAppComponent;
|
||||
|
||||
/**
|
||||
* Main application class for Launcher
|
||||
*/
|
||||
public class LauncherApplication extends Application {
|
||||
|
||||
private LauncherBaseAppComponent mAppComponent;
|
||||
@Override
|
||||
public void onCreate() {
|
||||
super.onCreate();
|
||||
MainProcessInitializer.initialize(this);
|
||||
mAppComponent = DaggerLauncherAppComponent.builder().build();
|
||||
}
|
||||
|
||||
public LauncherBaseAppComponent getAppComponent() {
|
||||
return mAppComponent;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user