summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWink Saville <wink@google.com>2012-12-12 14:44:17 -0800
committerWink Saville <wink@google.com>2012-12-12 14:44:17 -0800
commitf08c4c89622ddcbc4ed9315fe6b399941dad4939 (patch)
tree3ed5f81bb962df0a6295dfc59801180be0ee5732
parentf2a22db80d9921fae213c763f08f2800d30b5cd3 (diff)
downloadframeworks_opt_telephony-f08c4c89622ddcbc4ed9315fe6b399941dad4939.zip
frameworks_opt_telephony-f08c4c89622ddcbc4ed9315fe6b399941dad4939.tar.gz
frameworks_opt_telephony-f08c4c89622ddcbc4ed9315fe6b399941dad4939.tar.bz2
Turn auto attach on/off when we attach/detach.
Some network operators will detach after a timeout period, isDataAllowed() will not allow a data connection because mAutoAttachOnCreation is false and gprsState is not STATE_IN_SERVICE. This change toggles mAutoAttachOnCreation based on attach/detach events and data will be allowed if gprsState == STATE_IN_SERVICE or mAutoAttachOnCreation. Bug: 7491805 Change-Id: If41c2514ebdb9cd2fba88eef692f2c7160c04b0f
-rw-r--r--src/java/com/android/internal/telephony/gsm/GsmDataConnectionTracker.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/java/com/android/internal/telephony/gsm/GsmDataConnectionTracker.java b/src/java/com/android/internal/telephony/gsm/GsmDataConnectionTracker.java
index 4e68450..bada3d4 100644
--- a/src/java/com/android/internal/telephony/gsm/GsmDataConnectionTracker.java
+++ b/src/java/com/android/internal/telephony/gsm/GsmDataConnectionTracker.java
@@ -607,7 +607,7 @@ public final class GsmDataConnectionTracker extends DataConnectionTracker {
// update APN availability so that APN can be enabled.
notifyOffApnsOfAvailability(Phone.REASON_DATA_ATTACHED);
}
-
+ mAutoAttachOnCreation = true;
setupDataOnReadyApns(Phone.REASON_DATA_ATTACHED);
}