summaryrefslogtreecommitdiffstats
path: root/telephony/java
diff options
context:
space:
mode:
authorWink Saville <wink@google.com>2010-09-10 10:50:31 -0700
committerWink Saville <wink@google.com>2010-09-10 10:50:31 -0700
commit887f2e401edb84867b8ee4026306269abb0f909b (patch)
tree41a1870ddd79402a518c67eeb7017dc6147cb915 /telephony/java
parent34763928c995a15ee0b9ecfb7c0f4772ef20f2ea (diff)
downloadframeworks_base-887f2e401edb84867b8ee4026306269abb0f909b.zip
frameworks_base-887f2e401edb84867b8ee4026306269abb0f909b.tar.gz
frameworks_base-887f2e401edb84867b8ee4026306269abb0f909b.tar.bz2
Fix bug 2972138 Lost cell data connection and didn't get it back, DO NOT MERGE.
The problem was ConnectvityService was not notified if a permanent error occurs on the default apn. bug: 2972138 Change-Id: I7be17061695ae2ba3571d70f24dcc4fe96d9ede9
Diffstat (limited to 'telephony/java')
-rw-r--r--telephony/java/com/android/internal/telephony/gsm/GsmDataConnectionTracker.java6
1 files changed, 2 insertions, 4 deletions
diff --git a/telephony/java/com/android/internal/telephony/gsm/GsmDataConnectionTracker.java b/telephony/java/com/android/internal/telephony/gsm/GsmDataConnectionTracker.java
index f6d4491..e7d57bc 100644
--- a/telephony/java/com/android/internal/telephony/gsm/GsmDataConnectionTracker.java
+++ b/telephony/java/com/android/internal/telephony/gsm/GsmDataConnectionTracker.java
@@ -1157,10 +1157,8 @@ public final class GsmDataConnectionTracker extends DataConnectionTracker {
// No try for permanent failure
if (cause.isPermanentFail()) {
notifyNoData(cause);
- if (!mRequestedApnType.equals(Phone.APN_TYPE_DEFAULT)) {
- phone.notifyDataConnection(Phone.REASON_APN_FAILED);
- onEnableApn(apnTypeToId(mRequestedApnType), DISABLED);
- }
+ phone.notifyDataConnection(Phone.REASON_APN_FAILED);
+ onEnableApn(apnTypeToId(mRequestedApnType), DISABLED);
return;
}