Created
February 11, 2017 22:00
-
-
Save PierceZ/de717c4212a73861ac6f204bfae54536 to your computer and use it in GitHub Desktop.
App class to hold onto a reference of the BusComponent.
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 App extends Application { | |
private static BusComponent sBusComponent; | |
@Override | |
public void onCreate() { | |
super.onCreate(); | |
sBusComponent = DaggerBusComponent.create(); | |
} | |
public static BusComponent getBusComponent() { | |
return sBusComponent; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment