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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user