mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-31 22:26:06 +02:00
Workaround incorrect suspended state
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user