summaryrefslogtreecommitdiffstats
path: root/telephony
diff options
context:
space:
mode:
authorWink Saville <wink@google.com>2011-07-06 19:05:40 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2011-07-06 19:05:40 -0700
commit19065008b820ea95530d49cf1894f7481929f8e6 (patch)
treeaa99e1b10f9d9be21b7cef44a04f61a4d9a3261c /telephony
parent6c9d636f40477ef3ac44a6e30ac645d708d89002 (diff)
parent48b6d5afae76bec08c5e1194758e6db3e0f8b07c (diff)
downloadframeworks_base-19065008b820ea95530d49cf1894f7481929f8e6.zip
frameworks_base-19065008b820ea95530d49cf1894f7481929f8e6.tar.gz
frameworks_base-19065008b820ea95530d49cf1894f7481929f8e6.tar.bz2
am 48b6d5af: Merge "Reset FAILED ApnContext state to IDLE on data setup triggers" into honeycomb-LTE
* commit '48b6d5afae76bec08c5e1194758e6db3e0f8b07c': Reset FAILED ApnContext state to IDLE on data setup triggers
Diffstat (limited to 'telephony')
-rw-r--r--telephony/java/com/android/internal/telephony/gsm/GsmDataConnectionTracker.java12
1 files changed, 7 insertions, 5 deletions
diff --git a/telephony/java/com/android/internal/telephony/gsm/GsmDataConnectionTracker.java b/telephony/java/com/android/internal/telephony/gsm/GsmDataConnectionTracker.java
index a6b131a..fe57d0d 100644
--- a/telephony/java/com/android/internal/telephony/gsm/GsmDataConnectionTracker.java
+++ b/telephony/java/com/android/internal/telephony/gsm/GsmDataConnectionTracker.java
@@ -608,16 +608,18 @@ public final class GsmDataConnectionTracker extends DataConnectionTracker {
if (dcac.dataConnection != null) {
dcac.dataConnection.resetRetryCount();
}
-
- Collection<ApnContext> apnList = dcac.getApnListSync();
- for (ApnContext apnContext : apnList) {
- apnContext.setState(State.IDLE);
- }
}
}
// Only check for default APN state
for (ApnContext apnContext : mApnContexts.values()) {
+ if (apnContext.getState() == State.FAILED) {
+ // By this time, alarms for all failed Apns
+ // should be stopped if any.
+ // Make sure to set the state back to IDLE
+ // so that setup data can happen.
+ apnContext.setState(State.IDLE);
+ }
if (apnContext.isReady()) {
if (apnContext.getState() == State.IDLE) {
apnContext.setReason(reason);