Skip to content

Instantly share code, notes, and snippets.

@frogermcs
Created June 12, 2016 19:07
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/397c3aae28921a86eee1318c2276f6b5 to your computer and use it in GitHub Desktop.
Save frogermcs/397c3aae28921a86eee1318c2276f6b5 to your computer and use it in GitHub Desktop.
ViewHolder and Dagger 2 example
public class MyActivity extends BaseActivity {
@Inject MyActivityPresenter presenter;
@Override
protected void injectDependencies() {
getAppComponent().plus(new MyActivityModule(this)).inject(this);
}
//...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment