Created
July 26, 2017 11:50
-
-
Save vestrel00/bd1f79bf59fdfc564f945cf58b732b48 to your computer and use it in GitHub Desktop.
A: 3 - App.java
This file contains hidden or 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 App extends Application implements HasActivityInjector { | |
@Inject | |
DispatchingAndroidInjector<Activity> activityInjector; | |
@Override | |
public void onCreate() { | |
super.onCreate(); | |
DaggerAppComponent.create().inject(this); | |
} | |
@Override | |
public AndroidInjector<Activity> activityInjector() { | |
return activityInjector; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment