Suspended: no IP traffic

This commit is contained in:
M66B 2020-11-22 14:18:55 +01:00
parent 29a6e237e2
commit d40bf92953
1 changed files with 2 additions and 2 deletions

View File

@ -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;
}