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
Merged-In: I47d9b868b649b259d5e4008ec742317d2cb7cf51
Change-Id: I47d9b868b649b259d5e4008ec742317d2cb7cf51
(cherry picked from commit 147cc19b53)
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user