use of saulmm.avengers.AvengersApplication in project Avengers by saulmm.
the class CharacterListActivity method initializeDependencyInjector.
private void initializeDependencyInjector() {
AvengersApplication avengersApplication = (AvengersApplication) getApplication();
DaggerAvengersComponent.builder().activityModule(new ActivityModule(this)).appComponent(avengersApplication.getAppComponent()).build().inject(this);
}
use of saulmm.avengers.AvengersApplication in project Avengers by saulmm.
the class CharacterDetailActivity method initializeDependencyInjector.
private void initializeDependencyInjector() {
AvengersApplication avengersApplication = (AvengersApplication) getApplication();
int avengerId = getIntent().getIntExtra(EXTRA_CHARACTER_ID, -1);
DaggerAvengerInformationComponent.builder().activityModule(new ActivityModule(this)).appComponent(avengersApplication.getAppComponent()).avengerInformationModule(new AvengerInformationModule(avengerId)).build().inject(this);
}
use of saulmm.avengers.AvengersApplication in project Avengers by saulmm.
the class CollectionActivity method initDependencyInjector.
private void initDependencyInjector() {
int avengerId = getIntent().getIntExtra(EXTRA_CHARACTER_ID, -1);
DaggerAvengerInformationComponent.builder().activityModule(new ActivityModule(this)).appComponent(((AvengersApplication) getApplication()).getAppComponent()).avengerInformationModule(new AvengerInformationModule(avengerId)).build().inject(this);
}
Aggregations