Loading src/java/com/android/internal/telephony/subscription/SubscriptionManagerService.java +10 −6 Original line number Diff line number Diff line Loading @@ -1452,6 +1452,11 @@ public class SubscriptionManagerService extends ISub.Stub { if (mSlotIndexToSubId.containsKey(phoneId)) { markSubscriptionsInactive(phoneId); } if (Flags.clearCachedImsPhoneNumberWhenDeviceLostImsRegistration()) { // Clear the cached Ims phone number setNumberFromIms(getSubId(phoneId), new String("")); } } else if (simState == TelephonyManager.SIM_STATE_NOT_READY) { // Check if this is the final state. Only update the subscription if NOT_READY is a // final state. Loading @@ -1464,6 +1469,11 @@ public class SubscriptionManagerService extends ISub.Stub { } else { logl("updateSubscription: UICC app disabled on slot " + phoneId); markSubscriptionsInactive(phoneId); if (Flags.clearCachedImsPhoneNumberWhenDeviceLostImsRegistration()) { // Clear the cached Ims phone number setNumberFromIms(getSubId(phoneId), new String("")); } } } else { String iccId = getIccId(phoneId); Loading Loading @@ -1572,12 +1582,6 @@ public class SubscriptionManagerService extends ISub.Stub { loge("updateSubscription: ICC card is not available."); } if (Flags.clearCachedImsPhoneNumberWhenDeviceLostImsRegistration()) { // Clear the cached Ims phone number // before proceeding with Ims Registration setNumberFromIms(subId, new String("")); } // Attempt to restore SIM specific settings when SIM is loaded. Bundle result = mContext.getContentResolver().call( SubscriptionManager.SIM_INFO_BACKUP_AND_RESTORE_CONTENT_URI, Loading Loading
src/java/com/android/internal/telephony/subscription/SubscriptionManagerService.java +10 −6 Original line number Diff line number Diff line Loading @@ -1452,6 +1452,11 @@ public class SubscriptionManagerService extends ISub.Stub { if (mSlotIndexToSubId.containsKey(phoneId)) { markSubscriptionsInactive(phoneId); } if (Flags.clearCachedImsPhoneNumberWhenDeviceLostImsRegistration()) { // Clear the cached Ims phone number setNumberFromIms(getSubId(phoneId), new String("")); } } else if (simState == TelephonyManager.SIM_STATE_NOT_READY) { // Check if this is the final state. Only update the subscription if NOT_READY is a // final state. Loading @@ -1464,6 +1469,11 @@ public class SubscriptionManagerService extends ISub.Stub { } else { logl("updateSubscription: UICC app disabled on slot " + phoneId); markSubscriptionsInactive(phoneId); if (Flags.clearCachedImsPhoneNumberWhenDeviceLostImsRegistration()) { // Clear the cached Ims phone number setNumberFromIms(getSubId(phoneId), new String("")); } } } else { String iccId = getIccId(phoneId); Loading Loading @@ -1572,12 +1582,6 @@ public class SubscriptionManagerService extends ISub.Stub { loge("updateSubscription: ICC card is not available."); } if (Flags.clearCachedImsPhoneNumberWhenDeviceLostImsRegistration()) { // Clear the cached Ims phone number // before proceeding with Ims Registration setNumberFromIms(subId, new String("")); } // Attempt to restore SIM specific settings when SIM is loaded. Bundle result = mContext.getContentResolver().call( SubscriptionManager.SIM_INFO_BACKUP_AND_RESTORE_CONTENT_URI, Loading