mirror of https://github.com/M66B/FairEmail.git
Suspended: no IP traffic
This commit is contained in:
parent
29a6e237e2
commit
d40bf92953
|
@ -230,10 +230,10 @@ public class ConnectionHelper {
|
|||
return metered;
|
||||
}
|
||||
|
||||
// onLost [... state: SUSPENDED/SUSPENDED ... available: true]
|
||||
// onLost [... state: DISCONNECTED/DISCONNECTED ... available: true]
|
||||
NetworkInfo ani = cm.getNetworkInfo(active);
|
||||
if (ani == null || ani.getState() == NetworkInfo.State.DISCONNECTED) {
|
||||
// State can incorrectly be SUSPENDED
|
||||
if (ani == null || ani.getState() != NetworkInfo.State.CONNECTED) {
|
||||
Log.i("isMetered: no active info ani=" + ani);
|
||||
return null;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue