Created
August 1, 2017 01:46
-
-
Save bltuckerdevblog/3558758f7be3f2e73499244f21cce5c0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class MyApp extends Application implements HasActivityInjector { | |
@Inject | |
DispatchingAndroidInjector<Activity> dispatchingAndroidInjector; | |
ApplicationComponent appComponent; | |
@Override | |
public void onCreate(){ | |
super.onCreate(); | |
initializeDagger(); | |
appComponent.inject(this); | |
} | |
@Override | |
public AndroidInjector<Activity> activityInjector(){ | |
return dispatchingAndroidInjector; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment