Skip to content

Instantly share code, notes, and snippets.

@matzuk
Created January 22, 2017 18:35
Show Gist options
  • Save matzuk/71165b92c55d98e856ee1e4e865f88df to your computer and use it in GitHub Desktop.
Save matzuk/71165b92c55d98e856ee1e4e865f88df to your computer and use it in GitHub Desktop.
2
public class MainActivity extends Activity {
@Inject
Presenter presenter;
@Override
public void onCreate(@Nullable Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
MyApplication.getInstance().getAccountComponent("old account").inject(this);
presenter.startLoading();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment