Check restricted/foreground for non VPN only

pull/214/head
M66B 1 year ago
parent 6df8613004
commit 1a8b713e72

@ -311,7 +311,6 @@ public class ConnectionHelper {
Log.i("isMetered: not validated captive=" + captive);
return null;
}
}
if (!caps.hasCapability(NetworkCapabilities.NET_CAPABILITY_NOT_RESTRICTED)) {
Log.i("isMetered: active restricted");
@ -323,6 +322,7 @@ public class ConnectionHelper {
Log.i("isMetered: active background");
return null;
}
}
if (vpn_only) {
boolean vpn = vpnActive(context);

Loading…
Cancel
Save