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

Commit 4de021f7 authored by Naveen Kalla's avatar Naveen Kalla Committed by android-build-merger
Browse files

Retry data call on low priority APNs when high priority APN is disabled. am: af0722d0

am: d238c0ff

Change-Id: If6a80c24d9172f346627dc369576c8eef7cbbc44
parents 8c924b52 d238c0ff
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -2631,6 +2631,16 @@ public class DcTracker extends Handler {
        // TODO change our retry manager to use the appropriate numbers for the new APN
        if (DBG) log("onEnableApn: apnContext=" + apnContext + " call applyNewState");
        applyNewState(apnContext, enabled == DctConstants.ENABLED, apnContext.getDependencyMet());

        if ((enabled == DctConstants.DISABLED) &&
            isOnlySingleDcAllowed(mPhone.getServiceState().getRilDataRadioTechnology()) &&
            !isHigherPriorityApnContextActive(apnContext)) {

            if(DBG) log("onEnableApn: isOnlySingleDcAllowed true & higher priority APN disabled");
            // If the highest priority APN is disabled and only single
            // data call is allowed, try to setup data call on other connectable APN.
            setupDataOnConnectableApns(Phone.REASON_SINGLE_PDN_ARBITRATION);
        }
    }

    // TODO: We shouldnt need this.