File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
libs/SalesforceSDK/src/com/salesforce/androidsdk/auth Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -201,6 +201,8 @@ internal suspend fun onAuthFlowComplete(
201201
202202 // Save the user account
203203 addAccount(account)
204+ userAccountManager.createAccount(account)
205+ userAccountManager.switchToUser(account)
204206
205207 // Init user logging
206208 SalesforceAnalyticsManager .getInstance(account)?.updateLoggingPrefs()
@@ -218,8 +220,6 @@ internal suspend fun onAuthFlowComplete(
218220 else -> USER_SWITCH_TYPE_DEFAULT
219221 }
220222 userAccountManager.sendUserSwitchIntent(userSwitchType, null )
221- userAccountManager.createAccount(account)
222- userAccountManager.switchToUser(account)
223223
224224 // Kickoff the end of the flow before storing mobile policy to prevent launching
225225 // the main activity over/after the screen lock.
You can’t perform that action at this time.
0 commit comments