Fix bug 2972138 Lost cell data connection and didn't get it back.

The problem was ConnectvityService was not notified if a permanent error
occurs on the default apn.

bug: 2972138
Change-Id: Ic135f5344ae82bf743dd2097c8d2ede90c25cccb
This commit is contained in:
Wink Saville
2010-09-10 10:52:07 -07:00
parent 610d92f4c9
commit c13d4b68f8

View File

@@ -1150,10 +1150,8 @@ public final class GsmDataConnectionTracker extends DataConnectionTracker {
// No try for permanent failure
if (cause.isPermanentFail()) {
notifyNoData(cause);
if (!mRequestedApnType.equals(Phone.APN_TYPE_DEFAULT)) {
notifyDataConnection(Phone.REASON_APN_FAILED);
onEnableApn(apnTypeToId(mRequestedApnType), DISABLED);
}
notifyDataConnection(Phone.REASON_APN_FAILED);
onEnableApn(apnTypeToId(mRequestedApnType), DISABLED);
return;
}