Skip to content

Instantly share code, notes, and snippets.

@frogermcs
Created October 18, 2016 13:55
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/3c926bba2353d8835dd64e7f2d421b4c to your computer and use it in GitHub Desktop.
Save frogermcs/3c926bba2353d8835dd64e7f2d421b4c to your computer and use it in GitHub Desktop.
public class MainActivity extends BaseActivity {
//...
@Override
protected void injectMembers(HasActivitySubcomponentBuilders hasActivitySubcomponentBuilders) {
((MainActivityComponent.Builder) hasActivitySubcomponentBuilders.getActivityComponentBuilder(MainActivity.class))
.activityModule(new MainActivityComponent.MainActivityModule(this))
.build().injectMembers(this);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment