am dfcb8c51: Merge "Don\'t accept a user-defined dun-capable connection" into gingerbread
* commit 'dfcb8c511635431d536fd3ef1894378f4424ef1a': Don't accept a user-defined dun-capable connection
This commit is contained in:
@@ -361,6 +361,12 @@ public final class GsmDataConnectionTracker extends DataConnectionTracker {
|
|||||||
@Override
|
@Override
|
||||||
protected boolean isApnTypeActive(String type) {
|
protected boolean isApnTypeActive(String type) {
|
||||||
// TODO: support simultaneous with List instead
|
// TODO: support simultaneous with List instead
|
||||||
|
if (Phone.APN_TYPE_DUN.equals(type)) {
|
||||||
|
ApnSetting dunApn = fetchDunApn();
|
||||||
|
if (dunApn != null) {
|
||||||
|
return ((mActiveApn != null) && (dunApn.toString().equals(mActiveApn.toString())));
|
||||||
|
}
|
||||||
|
}
|
||||||
return mActiveApn != null && mActiveApn.canHandleType(type);
|
return mActiveApn != null && mActiveApn.canHandleType(type);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user