mirror of
https://github.com/M66B/FairEmail.git
synced 2025-12-26 15:40:59 +01:00
Workaround Android connectivity bug
This commit is contained in:
@@ -165,6 +165,11 @@ public class ConnectionHelper {
|
||||
return null;
|
||||
}
|
||||
|
||||
// onLost [... state: DISCONNECTED/DISCONNECTED ... available: true]
|
||||
NetworkInfo ani = cm.getNetworkInfo(active);
|
||||
if (ani == null || !ani.isConnected())
|
||||
return null;
|
||||
|
||||
NetworkCapabilities caps = cm.getNetworkCapabilities(active);
|
||||
if (caps == null) {
|
||||
Log.i("isMetered: active no caps");
|
||||
|
||||
Reference in New Issue
Block a user