Fix 2 functions getting connections up by apnType

A bad impl that only effected non-default connections on CDMA.
bug:4392820

Change-Id: If178dba90c4525289098fc88b80cf918e35f4d32
This commit is contained in:
Robert Greenwalt
2011-05-06 16:01:46 -07:00
parent 4c8fa6d135
commit 06ce569b76

View File

@@ -668,8 +668,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();
@@ -679,7 +681,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();