Merge "Handle the sim switch for restricted ss mode case" into main

This commit is contained in:
SongFerng Wang
2025-02-10 20:25:41 -08:00
committed by Android (Google) Code Review

View File

@@ -122,9 +122,10 @@ class SimOnboardingActivity : SpaBaseDialogActivity() {
return
}
if (onboardingService.activeSubInfoList.isEmpty()) {
if (onboardingService.activeSubInfoList.isEmpty()
|| (!onboardingService.isMultiSimEnabled && !onboardingService.isMultiSimSupported)) {
// TODO: refactor and replace the ToggleSubscriptionDialogActivity
Log.d(TAG, "onboardingService.activeSubInfoList is empty" +
Log.d(TAG, "onboardingService.activeSubInfoList is empty or restricted ss mode " +
", start ToggleSubscriptionDialogActivity")
this.startActivity(ToggleSubscriptionDialogActivity
.getIntent(this.applicationContext, targetSubId, true))