Merge "Using the new sim ui when user insert psim" into main
This commit is contained in:
committed by
Android (Google) Code Review
commit
e529a1233c
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user