Index: src/org/adblockplus/android/ProxyService.java |
=================================================================== |
--- a/src/org/adblockplus/android/ProxyService.java |
+++ b/src/org/adblockplus/android/ProxyService.java |
@@ -677,7 +677,8 @@ |
Log.i(TAG, "Action: " + action); |
if (ConnectivityManager.CONNECTIVITY_ACTION.equals(action)) |
{ |
- NetworkInfo info = intent.getParcelableExtra(ConnectivityManager.EXTRA_NETWORK_INFO); |
+ ConnectivityManager connectivityManager = (ConnectivityManager) getSystemService(Context.CONNECTIVITY_SERVICE); |
+ NetworkInfo info = connectivityManager.getActiveNetworkInfo(); |
if (info == null) |
return; |
String typeName = info.getTypeName(); |