Skip to content

Instantly share code, notes, and snippets.

@frogermcs
Created March 7, 2016 22:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save frogermcs/5f0a64d33b68bc51e4f6 to your computer and use it in GitHub Desktop.
Save frogermcs/5f0a64d33b68bc51e4f6 to your computer and use it in GitHub Desktop.
Dagger 2 producers
appProductionComponent = splashActivity.getAppProductionComponent();
Futures.addCallback(appProductionComponent.userManager(), new FutureCallback<UserManager>() {
@Override
public void onSuccess(UserManager result) {
SplashActivityPresenter.this.userManager = result;
}
@Override
public void onFailure(Throwable t) {
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment