diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/com/android/browser/NetworkStateHandler.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/com/android/browser/NetworkStateHandler.java b/src/com/android/browser/NetworkStateHandler.java index 3b2007e..37f4a2f 100644 --- a/src/com/android/browser/NetworkStateHandler.java +++ b/src/com/android/browser/NetworkStateHandler.java @@ -72,7 +72,10 @@ public class NetworkStateHandler { sendNetworkType(typeName.toLowerCase(), (subtypeName != null ? subtypeName.toLowerCase() : "")); - onNetworkToggle(info.isAvailable()); + boolean noConnection = intent.getBooleanExtra( + ConnectivityManager.EXTRA_NO_CONNECTIVITY, false); + + onNetworkToggle(!noConnection); } } }; |