Add IMS settings to Network setting reset
Add the factory reset function to be used to reset IMS settings BUG=25300757 Change-Id: I78d2e919418b7a0b42f56af3442d7d98afe40d77
This commit is contained in:
committed by
Pavel Zhamaitsiak
parent
39be1461a8
commit
623852f6c7
@@ -34,6 +34,7 @@ import android.widget.Button;
|
|||||||
import android.widget.Spinner;
|
import android.widget.Spinner;
|
||||||
import android.widget.Toast;
|
import android.widget.Toast;
|
||||||
|
|
||||||
|
import com.android.ims.ImsManager;
|
||||||
import com.android.internal.logging.MetricsLogger;
|
import com.android.internal.logging.MetricsLogger;
|
||||||
import com.android.internal.telephony.PhoneConstants;
|
import com.android.internal.telephony.PhoneConstants;
|
||||||
|
|
||||||
@@ -100,6 +101,8 @@ public class ResetNetworkConfirm extends InstrumentedFragment {
|
|||||||
btManager.getAdapter().factoryReset();
|
btManager.getAdapter().factoryReset();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ImsManager.factoryReset(context);
|
||||||
|
|
||||||
Toast.makeText(context, R.string.reset_network_complete_toast, Toast.LENGTH_SHORT)
|
Toast.makeText(context, R.string.reset_network_complete_toast, Toast.LENGTH_SHORT)
|
||||||
.show();
|
.show();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user