Skip to content

Commit

Permalink
fix twitter client activity result
Browse files Browse the repository at this point in the history
  • Loading branch information
pavel163 committed Jan 16, 2017
1 parent 34e0df7 commit 482832e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
7 changes: 0 additions & 7 deletions .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public void onActivityResult(int requestCode, int resultCode, Intent data) {
this.accessToken = data.getStringExtra(TwitterAuthActivity.KEY_ACCESS_TOKEN);
loadUser();
}
} else {
} else if (resultCode != Activity.RESULT_CANCELED) {
twitterProfileLoadedListener.onErrorTwitterProfileLoaded(new RuntimeException(data.getStringExtra(TwitterAuthActivity.CODE_EXCEPTION)));
}
}
Expand Down

0 comments on commit 482832e

Please sign in to comment.