use of com.lguipeng.notes.injector.module.ActivityModule in project Notes by lguipeng.
the class MainActivity method initializeDependencyInjector.
@Override
protected void initializeDependencyInjector() {
App app = (App) getApplication();
mActivityComponent = DaggerActivityComponent.builder().activityModule(new ActivityModule(this)).appComponent(app.getAppComponent()).build();
mActivityComponent.inject(this);
}
use of com.lguipeng.notes.injector.module.ActivityModule in project Notes by lguipeng.
the class NoteActivity method initializeDependencyInjector.
@Override
protected void initializeDependencyInjector() {
App app = (App) getApplication();
mActivityComponent = DaggerActivityComponent.builder().activityModule(new ActivityModule(this)).appComponent(app.getAppComponent()).build();
mActivityComponent.inject(this);
}
use of com.lguipeng.notes.injector.module.ActivityModule in project Notes by lguipeng.
the class SettingActivity method initializeDependencyInjector.
@Override
protected void initializeDependencyInjector() {
App app = (App) getApplication();
mActivityComponent = DaggerActivityComponent.builder().activityModule(new ActivityModule(this)).appComponent(app.getAppComponent()).build();
mActivityComponent.inject(this);
}
Aggregations