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

Commit 9713e3c6 authored by Robert Greenwalt's avatar Robert Greenwalt Committed by Android (Google) Code Review
Browse files

Merge "Fix bevhavior of fetchDunApn." into honeycomb-LTE

parents 6e41b32d 2b5a3ec7
Loading
Loading
Loading
Loading
+7 −5
Original line number Diff line number Diff line
@@ -513,8 +513,8 @@ public final class GsmDataConnectionTracker extends DataConnectionTracker {

    @Override
    protected boolean isApnTypeAvailable(String type) {
        if (type.equals(Phone.APN_TYPE_DUN)) {
            return (fetchDunApn() != null);
        if (type.equals(Phone.APN_TYPE_DUN) && fetchDunApn() != null) {
            return true;
        }

        if (mAllApns != null) {
@@ -1855,10 +1855,12 @@ public final class GsmDataConnectionTracker extends DataConnectionTracker {

        if (requestedApnType.equals(Phone.APN_TYPE_DUN)) {
            ApnSetting dun = fetchDunApn();
            if (dun != null) apnList.add(dun);
            if (dun != null) {
                apnList.add(dun);
                if (DBG) log("buildWaitingApns: X added APN_TYPE_DUN apnList=" + apnList);
                return apnList;
            }
        }

        String operator = mPhone.mIccRecords.getOperatorNumeric();
        if (requestedApnType.equals(Phone.APN_TYPE_DEFAULT)) {