From ea8bca0251fd048ba2242ef88afd69883a628737 Mon Sep 17 00:00:00 2001 From: Robert Greenwalt Date: Tue, 21 Dec 2010 11:43:28 -0800 Subject: [PATCH] Be sure and report NO_CONNECTIVITY when needed. Reports that we sometimes didn't report NO_CONNECTIVITY led to this suggested change. Could not repro the problem, but the change looks ok anyway. Better safe than sorry. bug:3276408 Change-Id: I0cdb48a05a5c9dfcf3a0b468a6eae43d461023b1 --- services/java/com/android/server/ConnectivityService.java | 1 + 1 file changed, 1 insertion(+) diff --git a/services/java/com/android/server/ConnectivityService.java b/services/java/com/android/server/ConnectivityService.java index a663c3a50e..bc102e435a 100644 --- a/services/java/com/android/server/ConnectivityService.java +++ b/services/java/com/android/server/ConnectivityService.java @@ -997,6 +997,7 @@ public class ConnectivityService extends IConnectivityManager.Stub { // a positive report we don't want to overwrite, but if not we need to clear this now // to turn our cellular sig strength white mDefaultInetConditionPublished = 0; + intent.putExtra(ConnectivityManager.EXTRA_NO_CONNECTIVITY, true); } intent.putExtra(ConnectivityManager.EXTRA_OTHER_NETWORK_INFO, switchTo); } else {