Skip to content

Commit

Permalink
Allow pass extras to target activity
Browse files Browse the repository at this point in the history
  • Loading branch information
wangmengyan95 committed Nov 19, 2015
1 parent 2db4219 commit ddf72b9
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,12 @@ protected Intent getParseLoginIntent() {
private void runDispatch() {
if (ParseUser.getCurrentUser() != null) {
debugLog(getString(R.string.com_parse_ui_login_dispatch_user_logged_in) + getTargetClass());
startActivityForResult(new Intent(this, getTargetClass()), TARGET_REQUEST);
Intent targetIntent = new Intent(this, getTargetClass());
Bundle extras = getIntent().getExtras();
if (extras != null) {
targetIntent.putExtras(extras);
}
startActivityForResult(targetIntent, TARGET_REQUEST);
} else {
debugLog(getString(R.string.com_parse_ui_login_dispatch_user_not_logged_in));
startActivityForResult(getParseLoginIntent(), LOGIN_REQUEST);
Expand Down

0 comments on commit ddf72b9

Please sign in to comment.