Commit fc20299f authored by Pavel Zhamaitsiak's avatar Pavel Zhamaitsiak
Browse files

Don't disable IMS if SIM is not ready

Bug: 27904215
Change-Id: Ieb2688bb8bc4916c28d1e7d8a48f7bdc854582cb
parent 428d4042
......@@ -543,6 +543,14 @@ public class ImsManager {
* @param force update
*/
public static void updateImsServiceConfig(Context context, int phoneId, boolean force) {
if (!force) {
if (TelephonyManager.getDefault().getSimState() != TelephonyManager.SIM_STATE_READY) {
log("updateImsServiceConfig: SIM not ready");
// Don't disable IMS if SIM is not ready
return;
}
}
final ImsManager imsManager = ImsManager.getInstance(context, phoneId);
if (imsManager != null && (!imsManager.mConfigUpdated || force)) {
try {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment