Using the new sim ui when user insert psim

When device has two active esim and the user insert psim, the settings
will popup the dailog to ask user select the two sim card.
Now, there is the new sim UI, so it should show the new one.

Bug: 335780975
Test: verify UI
Change-Id: I298d488d467c447d6f8d91d86383708a4d1f70c9
This commit is contained in:
songferngwang
2024-04-19 07:44:22 +00:00
parent 660986353e
commit aecc940987
3 changed files with 3 additions and 3 deletions

View File

@@ -549,6 +549,7 @@ class SimOnboardingActivity : SpaBaseDialogActivity() {
val intent = Intent(context, SimOnboardingActivity::class.java).apply {
putExtra(SUB_ID, subId)
}
intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK)
context.startActivity(intent)
}

View File

@@ -76,6 +76,7 @@ public class ToggleSubscriptionDialogActivity extends SubscriptionActionDialogAc
Intent intent = new Intent(context, ToggleSubscriptionDialogActivity.class);
intent.putExtra(ARG_SUB_ID, subId);
intent.putExtra(ARG_enable, enable);
intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
return intent;
}

View File

@@ -371,9 +371,7 @@ public class SimSlotChangeHandler {
return;
}
Log.d(TAG, "Start ToggleSubscriptionDialogActivity with " + subId + " under DSDS+Mep.");
Intent intent = ToggleSubscriptionDialogActivity.getIntent(mContext, subId, true);
intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
mContext.startActivityAsUser(intent, UserHandle.SYSTEM);
SubscriptionUtil.startToggleSubscriptionDialogActivity(mContext, subId, true);
}
private boolean isMultipleEnabledProfilesSupported() {