Handle the sim switch for restricted ss mode case

The restricted ss mode case is the device lock the sim switch function
in the single sim mode. For this case, UI did not use sim onboarding
flow, and use the sim switch dialog.

Bug: 393151990
Test: verify the sim switch function in the restricted ss mode.
Flag: EXEMPT bugfix
Change-Id: I04439f254010052c78a702618d972a9cf54cece0
This commit is contained in:
songferngwang
2025-02-11 02:26:46 +00:00
parent fc86da0f6d
commit 2d5a231a46

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))