Skip to content

Commit d68e321

Browse files
author
Robert Greenwalt
committed
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
1 parent 12b82c8 commit d68e321

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

services/java/com/android/server/ConnectivityService.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -997,6 +997,7 @@ private void handleDisconnect(NetworkInfo info) {
997997
// a positive report we don't want to overwrite, but if not we need to clear this now
998998
// to turn our cellular sig strength white
999999
mDefaultInetConditionPublished = 0;
1000+
intent.putExtra(ConnectivityManager.EXTRA_NO_CONNECTIVITY, true);
10001001
}
10011002
intent.putExtra(ConnectivityManager.EXTRA_OTHER_NETWORK_INFO, switchTo);
10021003
} else {

0 commit comments

Comments
 (0)