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

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

Merge "Fix 2 functions getting connections up by apnType" into honeycomb-LTE

parents 2499da83 06ce569b
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -671,8 +671,10 @@ public abstract class DataConnectionTracker extends Handler {

    protected LinkProperties getLinkProperties(String apnType) {
        int id = apnTypeToId(apnType);

        if (isApnIdEnabled(id)) {
            DataConnectionAc dcac = mDataConnectionAsyncChannels.get(id);
            // TODO - remove this cdma-only hack and support multiple DCs.
            DataConnectionAc dcac = mDataConnectionAsyncChannels.get(0);
            return dcac.getLinkPropertiesSync();
        } else {
            return new LinkProperties();
@@ -682,7 +684,8 @@ public abstract class DataConnectionTracker extends Handler {
    protected LinkCapabilities getLinkCapabilities(String apnType) {
        int id = apnTypeToId(apnType);
        if (isApnIdEnabled(id)) {
            DataConnectionAc dcac = mDataConnectionAsyncChannels.get(id);
            // TODO - remove this cdma-only hack and support multiple DCs.
            DataConnectionAc dcac = mDataConnectionAsyncChannels.get(0);
            return dcac.getLinkCapabilitiesSync();
        } else {
            return new LinkCapabilities();