Loading src/java/com/android/internal/telephony/dataconnection/DataProfile.java +5 −0 Original line number Diff line number Diff line Loading @@ -107,4 +107,9 @@ public class DataProfile { + "/" + maxConns + "/" + waitTime + "/" + enabled; } @Override public boolean equals(Object o) { if (o instanceof DataProfile == false) return false; return (toString().equals(o.toString())); } } src/java/com/android/internal/telephony/dataconnection/DcTrackerBase.java +12 −2 Original line number Diff line number Diff line Loading @@ -1697,7 +1697,8 @@ public abstract class DcTrackerBase extends Handler { // Search for Initial APN setting and the first apn that can handle default for (ApnSetting apn : mAllApnSettings) { // Can't use apn.canHandleType(), as that returns true for APNs that have no type. if (ArrayUtils.contains(apn.types, PhoneConstants.APN_TYPE_IA)) { if (ArrayUtils.contains(apn.types, PhoneConstants.APN_TYPE_IA) && apn.carrierEnabled) { // The Initial Attach APN is highest priority so use it if there is one log("setInitialApn: iaApnSetting=" + apn); iaApnSetting = apn; Loading Loading @@ -1751,9 +1752,18 @@ public abstract class DcTrackerBase extends Handler { if (apn.modemCognitive) { DataProfile dp = new DataProfile(apn, mPhone.getServiceState().getRoaming()); boolean isDup = false; for(DataProfile dpIn : dps) { if (dp.equals(dpIn)) { isDup = true; break; } } if (!isDup) { dps.add(dp); } } } if(dps.size() > 0) { mPhone.mCi.setDataProfile(dps.toArray(new DataProfile[0]), null); } Loading Loading
src/java/com/android/internal/telephony/dataconnection/DataProfile.java +5 −0 Original line number Diff line number Diff line Loading @@ -107,4 +107,9 @@ public class DataProfile { + "/" + maxConns + "/" + waitTime + "/" + enabled; } @Override public boolean equals(Object o) { if (o instanceof DataProfile == false) return false; return (toString().equals(o.toString())); } }
src/java/com/android/internal/telephony/dataconnection/DcTrackerBase.java +12 −2 Original line number Diff line number Diff line Loading @@ -1697,7 +1697,8 @@ public abstract class DcTrackerBase extends Handler { // Search for Initial APN setting and the first apn that can handle default for (ApnSetting apn : mAllApnSettings) { // Can't use apn.canHandleType(), as that returns true for APNs that have no type. if (ArrayUtils.contains(apn.types, PhoneConstants.APN_TYPE_IA)) { if (ArrayUtils.contains(apn.types, PhoneConstants.APN_TYPE_IA) && apn.carrierEnabled) { // The Initial Attach APN is highest priority so use it if there is one log("setInitialApn: iaApnSetting=" + apn); iaApnSetting = apn; Loading Loading @@ -1751,9 +1752,18 @@ public abstract class DcTrackerBase extends Handler { if (apn.modemCognitive) { DataProfile dp = new DataProfile(apn, mPhone.getServiceState().getRoaming()); boolean isDup = false; for(DataProfile dpIn : dps) { if (dp.equals(dpIn)) { isDup = true; break; } } if (!isDup) { dps.add(dp); } } } if(dps.size() > 0) { mPhone.mCi.setDataProfile(dps.toArray(new DataProfile[0]), null); } Loading