File tree Expand file tree Collapse file tree
libs/SalesforceSDK/src/com/salesforce/androidsdk/ui Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -278,7 +278,8 @@ open class LoginActivity : FragmentActivity() {
278278 // Check if the user backed out of the custom tab.
279279 if (result.resultCode == Activity .RESULT_CANCELED ) {
280280 if (viewModel.singleServerCustomTabActivity) {
281- finish()
281+ // Show blank page and spinner until PKCE is done.
282+ viewModel.loginUrl.value = ABOUT_BLANK
282283 } else {
283284 // Don't show server picker if we are re-authenticating with cookie.
284285 clearWebView(showServerPicker = ! sharedBrowserSession)
@@ -1192,7 +1193,7 @@ open class LoginActivity : FragmentActivity() {
11921193 val useLightIcons = titleTextColorLight ? : topAppBarDark ? : dynamicThemeIsDark
11931194 WindowCompat .getInsetsController(window, window.decorView).isAppearanceLightStatusBars = useLightIcons
11941195 }.also {
1195- if (! viewModel.authFinished.value) {
1196+ if (! viewModel.authFinished.value && url != ABOUT_BLANK ) {
11961197 viewModel.loading.value = false
11971198 }
11981199 }
You can’t perform that action at this time.
0 commit comments