From 886651f3cbf0d8a07d5df1b77abe0c39d36e6a74 Mon Sep 17 00:00:00 2001 From: Mariotaku Lee Date: Sat, 13 May 2017 18:59:13 +0800 Subject: [PATCH] fixed fanfou login --- .../kotlin/org/mariotaku/twidere/activity/SignInActivity.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/twidere/src/main/kotlin/org/mariotaku/twidere/activity/SignInActivity.kt b/twidere/src/main/kotlin/org/mariotaku/twidere/activity/SignInActivity.kt index 88c344a3a..b07a69b46 100644 --- a/twidere/src/main/kotlin/org/mariotaku/twidere/activity/SignInActivity.kt +++ b/twidere/src/main/kotlin/org/mariotaku/twidere/activity/SignInActivity.kt @@ -504,9 +504,9 @@ class SignInActivity : BaseActivity(), OnClickListener, TextWatcher, private fun handleBrowserLoginResult(intent: Intent?) { if (intent == null) return val extras = intent.getBundleExtra(EXTRA_EXTRAS) ?: return - val verifier = intent.getStringExtra(EXTRA_OAUTH_VERIFIER) ?: return val requestToken = OAuthToken(extras.getString(EXTRA_REQUEST_TOKEN), extras.getString(EXTRA_REQUEST_TOKEN_SECRET)) + val verifier = intent.getStringExtra(EXTRA_OAUTH_VERIFIER) signInTask = BrowserSignInTask(this, apiConfig, requestToken, verifier) AsyncTaskUtils.executeTask(signInTask) }