Add new warning dialogue when user is Resetting mobile network settings.

If the user is reseting mobile network settings and have all these
conditions:
- No Wi-fi
- Has check to delete all eSIMs
- Has a least one RAC sim carrier
Then show the warning dialogue.

Test: make, manually test, atest SubSettingLauncherTest, atest ResetNetworkTest,  atest SubscriptionUtilTest
Bug: 328649510
Change-Id: I47d9b868b649b259d5e4008ec742317d2cb7cf51
This commit is contained in:
Rafael Higuera Silva
2024-03-13 23:18:47 +00:00
parent 14b1831fda
commit 147cc19b53
8 changed files with 195 additions and 17 deletions

View File

@@ -50,8 +50,7 @@ public class EraseEuiccDataController extends BasePreferenceController {
if (!TextUtils.equals(preference.getKey(), getPreferenceKey())) {
return false;
}
if (SubscriptionUtil.hasSubscriptionWithRacCarrier(mContext)
&& !SubscriptionUtil.isConnectedToWifi(mContext)) {
if (SubscriptionUtil.shouldShowRacDialog(mContext)) {
EuiccRacConnectivityDialogFragment.show(mHostFragment);
} else {
EraseEuiccDataDialogFragment.show(mHostFragment);