Skip to content

Commit

Permalink
Merge pull request #99 from ParsePlatform/wangmengyan.add_extra_args_…
Browse files Browse the repository at this point in the history
…in_ParseLoginDispatchActivity

Allow pass extras to target activity
  • Loading branch information
wangmengyan95 committed Dec 8, 2015
2 parents c2d2e65 + ddf72b9 commit dc42a80
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 dc42a80

Please sign in to comment.