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 @@ -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,24 +516,10 @@ 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)
519+ val previousPendingLoginServerUri = previousPendingServer?.toUri() ? : return false
528520
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- }
521+ val a = isSalesforceWelcomeDiscoveryUrlPath(previousPendingLoginServerUri)
522+ val b = ! isSalesforceWelcomeDiscoveryUrlPath(pendingLoginServerUri)
538523
539524 return a && b
540525 }
You can’t perform that action at this time.
0 commit comments