IMS: Use the slot based ImsManager factory reset API.

Use the slot based factory reset API of ImsManager
to reset the IMS settings values for appropriate sub.

Test: Manual
Bug: 74412226
Change-Id: Iceabb225764ac01f0172142ef95e874ca93c061d
This commit is contained in:
Suresh Koleti
2017-07-31 22:09:06 -07:00
parent 4ec0e8e865
commit 981f940ee9

View File

@@ -105,7 +105,8 @@ public class ResetNetworkConfirm extends OptionsMenuFragment {
}
}
ImsManager.factoryReset(context);
ImsManager.getInstance(context,
SubscriptionManager.getPhoneId(mSubId)).factoryReset();
restoreDefaultApn(context);
Toast.makeText(context, R.string.reset_network_complete_toast, Toast.LENGTH_SHORT)