1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2025-02-27 16:33:47 +00:00

Revert "Added network bug workaround"

This reverts commit aabae2d8d6.
This commit is contained in:
M66B 2019-12-23 21:29:57 +01:00
parent e9bceaf26b
commit fd223d6d4c

View file

@ -187,13 +187,7 @@ public class ConnectionHelper {
Network active = cm.getActiveNetwork();
if (active == null) {
Log.i("isMetered: no active network");
// Workaround bug in some Android versions
NetworkInfo ani = cm.getActiveNetworkInfo();
if (ani == null || !ani.isConnected()) {
Log.i("isMetered: no active network=" + (ani == null ? null : ani.isConnected()));
return null;
}
return cm.isActiveNetworkMetered();
return null;
}
// onLost [... state: DISCONNECTED/DISCONNECTED ... available: true]