am 2b48ca07: Merge "Fix 2 functions getting connections up by apnType" into honeycomb-LTE
* commit '2b48ca07efd7f499ff01a3eeb17a4f5c40106dbe': Fix 2 functions getting connections up by apnType
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user