diff options
Diffstat (limited to 'core/java/android/net/MobileDataStateTracker.java')
-rw-r--r-- | core/java/android/net/MobileDataStateTracker.java | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/core/java/android/net/MobileDataStateTracker.java b/core/java/android/net/MobileDataStateTracker.java index b619fee..e5e6db9 100644 --- a/core/java/android/net/MobileDataStateTracker.java +++ b/core/java/android/net/MobileDataStateTracker.java @@ -42,7 +42,7 @@ import android.text.TextUtils; public class MobileDataStateTracker extends NetworkStateTracker { private static final String TAG = "MobileDataStateTracker"; - private static final boolean DBG = false; + private static final boolean DBG = true; private Phone.DataState mMobileDataState; private ITelephony mPhoneService; @@ -142,11 +142,6 @@ public class MobileDataStateTracker extends NetworkStateTracker { boolean unavailable = intent.getBooleanExtra(Phone.NETWORK_UNAVAILABLE_KEY, false); - if (DBG) Log.d(TAG, mApnType + " Received " + intent.getAction() + - " broadcast - state = " + state + ", oldstate = " + mMobileDataState + - ", unavailable = " + unavailable + ", reason = " + - (reason == null ? "(unspecified)" : reason) + - ", apnTypeList = " + apnTypeList); // set this regardless of the apnTypeList. It's all the same radio/network // underneath @@ -166,14 +161,17 @@ public class MobileDataStateTracker extends NetworkStateTracker { " for " + mApnType); mInterfaceName = intent.getStringExtra(Phone.DATA_IFACE_NAME_KEY); } - if (DBG) Log.d(TAG, " dropped - mEnabled = false"); return; } } else { - if (DBG) Log.d(TAG, " dropped - wrong Apn"); return; } + if (DBG) Log.d(TAG, mApnType + " Received state= " + state + ", old= " + + mMobileDataState + ", reason= " + + (reason == null ? "(unspecified)" : reason) + + ", apnTypeList= " + apnTypeList); + if (mMobileDataState != state) { mMobileDataState = state; switch (state) { |