mirror of https://github.com/M66B/FairEmail.git
Workaround incorrect suspended state
This commit is contained in:
parent
471f07f18f
commit
bc1b9e62c4
|
@ -208,7 +208,8 @@ public class ConnectionHelper {
|
|||
|
||||
// onLost [... state: DISCONNECTED/DISCONNECTED ... available: true]
|
||||
NetworkInfo ani = cm.getNetworkInfo(active);
|
||||
if (ani == null || !ani.isConnected()) {
|
||||
if (ani == null || ani.getState() == NetworkInfo.State.DISCONNECTED) {
|
||||
// State can incorrectly be SUSPENDED
|
||||
Log.i("isMetered: no active info ani=" + ani);
|
||||
return null;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue