summaryrefslogtreecommitdiffstats
path: root/telephony/java
diff options
context:
space:
mode:
authorWink Saville <wink@google.com>2011-04-16 14:49:07 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2011-04-16 14:49:07 -0700
commit5f7edb2c53b2432ea3426c563d9743338ba1d064 (patch)
tree414e9ba916ec5c0f4f6e3115cd0c311608b3e298 /telephony/java
parentd86e06f7db0705b5fa64f23dcecf305133d2acc7 (diff)
parenta9378485cb8d0968a9a177f730875e0f1d49d689 (diff)
downloadframeworks_base-5f7edb2c53b2432ea3426c563d9743338ba1d064.zip
frameworks_base-5f7edb2c53b2432ea3426c563d9743338ba1d064.tar.gz
frameworks_base-5f7edb2c53b2432ea3426c563d9743338ba1d064.tar.bz2
am a9378485: Merge "Telephony: GDCT - Set enabled state before notification is sent out." into honeycomb-LTE
* commit 'a9378485cb8d0968a9a177f730875e0f1d49d689': Telephony: GDCT - Set enabled state before notification is sent out.
Diffstat (limited to 'telephony/java')
-rw-r--r--telephony/java/com/android/internal/telephony/gsm/GsmDataConnectionTracker.java22
1 files changed, 6 insertions, 16 deletions
diff --git a/telephony/java/com/android/internal/telephony/gsm/GsmDataConnectionTracker.java b/telephony/java/com/android/internal/telephony/gsm/GsmDataConnectionTracker.java
index 21a2cb9..9a91ee4 100644
--- a/telephony/java/com/android/internal/telephony/gsm/GsmDataConnectionTracker.java
+++ b/telephony/java/com/android/internal/telephony/gsm/GsmDataConnectionTracker.java
@@ -545,16 +545,6 @@ public final class GsmDataConnectionTracker extends DataConnectionTracker {
return false;
}
- protected boolean isEnabled(String apnType) {
- ApnContext apnContext = mApnContexts.get(apnType);
- if (apnContext == null) return false;
- if (apnContext.getState() == State.DISCONNECTING
- && apnContext.getPendingAction() == ApnContext.PENDING_ACTION_APN_DISABLE) {
- return false;
- }
- return true;
- }
-
/**
* Report on whether data connectivity is enabled for any APN.
* @return {@code false} if data connectivity has been explicitly disabled,
@@ -1613,6 +1603,12 @@ public final class GsmDataConnectionTracker extends DataConnectionTracker {
mPhone.notifyDataConnection(apnContext.getReason(), apnContext.getApnType());
+ // Check if APN disabled.
+ if (apnContext.getPendingAction() == ApnContext.PENDING_ACTION_APN_DISABLE) {
+ apnContext.setEnabled(false);
+ apnContext.setPendingAction(ApnContext.PENDING_ACTION_NONE);
+ }
+
// if all data connection are gone, check whether Airplane mode request was
// pending.
if (!isConnected()) {
@@ -1622,12 +1618,6 @@ public final class GsmDataConnectionTracker extends DataConnectionTracker {
}
}
- // Check if APN disabled.
- if (apnContext.getPendingAction() == ApnContext.PENDING_ACTION_APN_DISABLE) {
- apnContext.setEnabled(false);
- apnContext.setPendingAction(ApnContext.PENDING_ACTION_NONE);
- }
-
if (TextUtils.equals(apnContext.getApnType(), Phone.APN_TYPE_DEFAULT)
&& retryAfterDisconnected(apnContext.getReason())) {
SystemProperties.set("gsm.defaultpdpcontext.active", "false");