Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
//UserDetailsActivity
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_user_details);
tvUser = (TextView) findViewById(R.id.tvUser);
tvUserUrl = (TextView) findViewById(R.id.tvUserUrl);
//This check has to be called. Otherwise, when user is not logged in, presenter won't be injected and this line will cause NPE
if (isUserSessionStarted()) {
presenter.onCreate();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment