Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5fa3fa39 authored by Adnan Begovic's avatar Adnan Begovic
Browse files

DcTracker: Only retrieve records when we're either RUIM or CdmaLte AND subscribing from NV

Change-Id: I498097440d62ad6c9e04497085a63ede894fb5d8
parent c2f60eb4
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -171,11 +171,11 @@ public class IccCardProxy extends Handler implements IccCard {

        if (mCurrentAppType == UiccController.APP_FAM_3GPP2) {
            int newSubscriptionSource = mCdmaSSM.getCdmaSubscriptionSource();
            // allow ruim to fetch in cdma lte mode, don't do it for devices don't have lte
            // in nv mode. fixes cases where it iccid could be unknown on some cdma nv devices.
            // Allow both RUIM and CdmaLte from NV to trigger records
            // required
            if (newSubscriptionSource == CdmaSubscriptionSourceManager.SUBSCRIPTION_FROM_RUIM
                || PhoneFactory.getDefaultPhone().getLteOnCdmaMode()
                == PhoneConstants.LTE_ON_CDMA_TRUE) {
                || ((PhoneFactory.getDefaultPhone().getLteOnCdmaMode()
                == PhoneConstants.LTE_ON_CDMA_TRUE) && (newSubscriptionSource == CdmaSubscriptionSourceManager.SUBSCRIPTION_FROM_NV))) {
                // Set this as the Active record.
                log("Setting Ruim Record as active");
                mIccRecords.recordsRequired();