summaryrefslogtreecommitdiffstats
path: root/core/java/android/net/MobileDataStateTracker.java
diff options
context:
space:
mode:
authorRobert Greenwalt <robdroid@android.com>2009-09-10 15:06:20 -0700
committerRobert Greenwalt <robdroid@android.com>2009-09-10 18:01:01 -0700
commit8206ff30c23c76851bebc8d72a65e65b0f7f9a29 (patch)
tree82c437af24595ae95bc313124cb9df09108b1041 /core/java/android/net/MobileDataStateTracker.java
parentbcbcaa7edd32ba67c6290d79f7e7821c4b5b39ac (diff)
downloadframeworks_base-8206ff30c23c76851bebc8d72a65e65b0f7f9a29.zip
frameworks_base-8206ff30c23c76851bebc8d72a65e65b0f7f9a29.tar.gz
frameworks_base-8206ff30c23c76851bebc8d72a65e65b0f7f9a29.tar.bz2
Fix for multi-apn MMS access.
Mark cellular variants with the same availability, regardless of which are currently in use. Availability just means the radio is enabled and sees the network, but has no guarantees that we could connect to an APN if requested. Fix the requestRouteToHost logic to support apn switches without WIFI. bug:2093841
Diffstat (limited to 'core/java/android/net/MobileDataStateTracker.java')
-rw-r--r--core/java/android/net/MobileDataStateTracker.java8
1 files changed, 5 insertions, 3 deletions
diff --git a/core/java/android/net/MobileDataStateTracker.java b/core/java/android/net/MobileDataStateTracker.java
index f88fcdc..d8db4c1 100644
--- a/core/java/android/net/MobileDataStateTracker.java
+++ b/core/java/android/net/MobileDataStateTracker.java
@@ -145,12 +145,14 @@ public class MobileDataStateTracker extends NetworkStateTracker {
if (DBG) Log.d(TAG, mApnType + " Received " + intent.getAction() +
" broadcast - state = " + state + ", oldstate = " + mMobileDataState +
", unavailable = " + unavailable + ", reason = " +
- (reason == null ? "(unspecified)" : reason));
+ (reason == null ? "(unspecified)" : reason) +
+ ", apnTypeList = " + apnTypeList);
+ // set this regardless of the apnTypeList. It's all the same radio/network
+ // underneath
+ mNetworkInfo.setIsAvailable(!unavailable);
if (isApnTypeIncluded(apnTypeList)) {
- // set this even if the apn isn't Enabled
- mNetworkInfo.setIsAvailable(!unavailable);
if (mEnabled == false) {
// if we're not enabled but the APN Type is supported by this connection
// we should record the interface name if one's provided. If the user