From c13d4b68f832a4f3ceadd4dae80ac60135740816 Mon Sep 17 00:00:00 2001 From: Wink Saville Date: Fri, 10 Sep 2010 10:52:07 -0700 Subject: [PATCH] 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 --- .../internal/telephony/gsm/GsmDataConnectionTracker.java | 6 ++---- 1 file 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 885e5bcd125a1..f6887ebe0af06 100644 --- a/telephony/java/com/android/internal/telephony/gsm/GsmDataConnectionTracker.java +++ b/telephony/java/com/android/internal/telephony/gsm/GsmDataConnectionTracker.java @@ -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; }