diff options
| author | Robert Greenwalt <robdroid@android.com> | 2010-03-10 16:10:43 -0800 |
|---|---|---|
| committer | Robert Greenwalt <robdroid@android.com> | 2010-03-10 16:19:18 -0800 |
| commit | 78a640af951377d9749d0dbfd027687cbb92dc72 (patch) | |
| tree | d25f42c50b37810178f4b38b97695adc166f42ad /services/java/com/android/server/ConnectivityService.java | |
| parent | 180403ac103e8ee1eeb07c5e3377748ee6a03917 (diff) | |
Make HiPri work when already connected.
A recent change made the HiPri MobileDataStateTracker listen for notifications
about the default connection (which HiPri shadows). Local code was sending
itself a notification using the old HiPri badging instead of the new Default
badging and those notifications where therefore ignored.
Manifested itself on HiPri connections when we were already on 3g.
See change 42422 on master platform/frameworks/base for the change this is completing.
Change-Id: I375026048724d0035297287c61c6c2f58d4e0294
Diffstat (limited to 'services/java/com/android/server/ConnectivityService.java')
| -rw-r--r-- | services/java/com/android/server/ConnectivityService.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/services/java/com/android/server/ConnectivityService.java b/services/java/com/android/server/ConnectivityService.java index 70deb3edddf4..fa0624413c79 100644 --- a/services/java/com/android/server/ConnectivityService.java +++ b/services/java/com/android/server/ConnectivityService.java @@ -668,6 +668,7 @@ public class ConnectivityService extends IConnectivityManager.Stub { synchronized(this) { // check if this process still has an outstanding start request if (!mFeatureUsers.contains(u)) { + if (DBG) Slog.d(TAG, "ignoring - this process has no outstanding requests"); return 1; } u.unlinkDeathRecipient(); @@ -706,6 +707,7 @@ public class ConnectivityService extends IConnectivityManager.Stub { } tracker = mNetTrackers[usedNetworkType]; if (tracker == null) { + if (DBG) Slog.d(TAG, "ignoring - no known tracker for net type " + usedNetworkType); return -1; } if (usedNetworkType != networkType) { @@ -720,7 +722,7 @@ public class ConnectivityService extends IConnectivityManager.Stub { callTeardown = true; } } - + if (DBG) Slog.d(TAG, "Doing network teardown"); if (callTeardown) { tracker.teardown(); return 1; |
