File tree Expand file tree Collapse file tree 1 file changed +2
-20
lines changed
libs/SalesforceSDK/src/com/salesforce/androidsdk/ui Expand file tree Collapse file tree 1 file changed +2
-20
lines changed Original file line number Diff line number Diff line change @@ -28,7 +28,6 @@ package com.salesforce.androidsdk.ui
2828
2929import android.annotation.SuppressLint
3030import android.net.Uri
31- import android.util.Log
3231import android.webkit.CookieManager
3332import android.webkit.URLUtil
3433import android.webkit.WebView
@@ -517,26 +516,9 @@ open class LoginViewModel(val bootConfig: BootConfig) : ViewModel() {
517516 internal fun isSwitchFromSalesforceWelcomeDiscoveryToDefaultLogin (
518517 pendingLoginServerUri : Uri
519518 ): Boolean {
520- // TODO: Re-compress this logic after CodeCov P.O.C. ECJ20251210
521- val pPLS = previousPendingServer
522- if (pPLS == null ) {
523- Log .i(" WSC" , " 0" )
524- return false
525- }
526- val a = isSalesforceWelcomeDiscoveryUrlPath(pPLS.toUri())
527- val b = ! isSalesforceWelcomeDiscoveryUrlPath(pendingLoginServerUri)
528-
529- if ((! a).and (! b)) {
530- Log .i(" WSC" , " 1" )
531- } else if (a.and (! b)) {
532- Log .i(" WSC" , " 2" )
533- } else if (! a) {
534- Log .i(" WSC" , " 3" )
535- } else {
536- Log .i(" WSC" , " 4" )
537- }
519+ val previousPendingLoginServerUri = previousPendingServer ? : return false
538520
539- return a && b
521+ return isSalesforceWelcomeDiscoveryUrlPath(previousPendingLoginServerUri.toUri()). and ( ! isSalesforceWelcomeDiscoveryUrlPath(pendingLoginServerUri))
540522 }
541523
542524 // endregion
You can’t perform that action at this time.
0 commit comments