mozilla-services/android-sync — comment on commit 1936840b2e4eaed00b9e04d2fc88836103ad5a6d
File:  line 0
By rnewman:

Why not

```
if (connManager.getBooleanExtra(ConnectivityManager.EXTRA_NO_CONNECTIVITY)) {
return false;
}
return true;
```

or

```
NetworkInfo info = connManager.getActiveNetworkInfo();
if (info != null && info.isConnected()) { // or isAvailable()…
return true;
}
return false;
```