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