Automated import from //branches/donutburger/...@142336,142336
This commit is contained in:
committed by
The Android Open Source Project
parent
079c6f64f9
commit
1d4613c1ec
@@ -1693,6 +1693,7 @@ final class DataConnectionTracker extends Handler
|
||||
|
||||
if (allApns.isEmpty()) {
|
||||
if (DBG) log("No APN found for carrier: " + operator);
|
||||
preferredApn = null;
|
||||
notifyNoData(PdpConnection.PdpFailCause.BAD_APN);
|
||||
} else {
|
||||
preferredApn = getPreferredApn();
|
||||
@@ -1819,7 +1820,7 @@ final class DataConnectionTracker extends Handler
|
||||
cursor.moveToFirst();
|
||||
pos = cursor.getInt(cursor.getColumnIndexOrThrow(Telephony.Carriers._ID));
|
||||
for(ApnSetting p:allApns) {
|
||||
if (p.id == pos) {
|
||||
if (p.id == pos && p.canHandleType(mRequestedApnType)) {
|
||||
cursor.close();
|
||||
return p;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user