Workaround for Android network bug

Android 6.0 Huawei Che2-L11
This commit is contained in:
M66B 2020-03-12 13:22:42 +01:00
parent fe9ead45e8
commit 2c123b7902
1 changed files with 4 additions and 0 deletions

View File

@ -264,6 +264,10 @@ public class ConnectionHelper {
Log.i("isMetered: underlying is unmetered");
return false;
}
} else {
// Workaround: active network = VPN, active network info = WiFi
if (network.equals(active) && !cm.isActiveNetworkMetered())
return false;
}
}