Fix getActiveApnTypes for GsmDCT.

Change-Id: I42e71f0cbe31289f16623de38141213f547aa13f
This commit is contained in:
Robert Greenwalt
2011-04-08 15:38:40 -07:00
parent 5203a5bc28
commit 1b6c758c29

View File

@@ -197,6 +197,7 @@ public final class GsmDataConnectionTracker extends DataConnectionTracker {
destroyDataConnections();
}
@Override
public boolean isApnTypeActive(String type) {
ApnContext apnContext = mApnContexts.get(type);
if (apnContext == null) return false;
@@ -204,7 +205,6 @@ public final class GsmDataConnectionTracker extends DataConnectionTracker {
return (apnContext.getDataConnection() != null);
}
/**
* The only circumstances under which we report that data connectivity is not
* possible are
@@ -317,7 +317,7 @@ public final class GsmDataConnectionTracker extends DataConnectionTracker {
@Override
// Return all active apn types
public synchronized String[] getActiveApnTypes() {
public String[] getActiveApnTypes() {
if (DBG) log("get all active apn types");
ArrayList<String> result = new ArrayList<String>();