Ignore clear config if shutdown
Ignore clear config request if device
is being shutdown
Test: verified that there is not IMS turn off
during shutdown
Bug:65749654
Merged-In: If9da197ffee10f395ea73561400644d6765be1e1
Change-Id: If9da197ffee10f395ea73561400644d6765be1e1
diff --git a/src/com/android/phone/CarrierConfigLoader.java b/src/com/android/phone/CarrierConfigLoader.java
index a26e3d8..2114ad8 100644
--- a/src/com/android/phone/CarrierConfigLoader.java
+++ b/src/com/android/phone/CarrierConfigLoader.java
@@ -169,8 +169,17 @@
switch (msg.what) {
case EVENT_CLEAR_CONFIG:
{
+ /* Ignore clear configuration request if device is being shutdown. */
+ Phone phone = PhoneFactory.getPhone(phoneId);
+ if (phone != null) {
+ if (phone.isShuttingDown()) {
+ break;
+ }
+ }
+
if (mConfigFromDefaultApp[phoneId] == null
&& mConfigFromCarrierApp[phoneId] == null) break;
+
mConfigFromDefaultApp[phoneId] = null;
mConfigFromCarrierApp[phoneId] = null;
mServiceConnection[phoneId] = null;