diff options
author | Wink Saville <wink@google.com> | 2011-07-06 19:05:40 -0700 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2011-07-06 19:05:40 -0700 |
commit | 19065008b820ea95530d49cf1894f7481929f8e6 (patch) | |
tree | aa99e1b10f9d9be21b7cef44a04f61a4d9a3261c /telephony | |
parent | 6c9d636f40477ef3ac44a6e30ac645d708d89002 (diff) | |
parent | 48b6d5afae76bec08c5e1194758e6db3e0f8b07c (diff) | |
download | frameworks_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.java | 12 |
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); |