diff --git a/app/src/main/java/eu/faircode/email/ConnectionHelper.java b/app/src/main/java/eu/faircode/email/ConnectionHelper.java index b02520c3cf..78d763204d 100644 --- a/app/src/main/java/eu/faircode/email/ConnectionHelper.java +++ b/app/src/main/java/eu/faircode/email/ConnectionHelper.java @@ -197,9 +197,10 @@ public class ConnectionHelper { } if (caps.hasCapability(NetworkCapabilities.NET_CAPABILITY_NOT_VPN)) { - boolean unmetered = caps.hasCapability(NetworkCapabilities.NET_CAPABILITY_NOT_METERED); - Log.i("isMetered: active not VPN unmetered=" + unmetered); - return !unmetered; + // NET_CAPABILITY_NOT_METERED is unreliable on older Android versions + boolean metered = cm.isActiveNetworkMetered(); + Log.i("isMetered: active not VPN metered=" + metered); + return metered; } // VPN: evaluate underlying networks