Limit network workaround to Android 6 and earlier

This commit is contained in:
M66B 2020-03-12 14:13:23 +01:00
parent 829c417cf1
commit a7124bfb93
1 changed files with 2 additions and 1 deletions

View File

@ -266,7 +266,8 @@ public class ConnectionHelper {
}
} else {
// Workaround: active network = VPN, active network info = WiFi
if (network.equals(active) && !cm.isActiveNetworkMetered())
if (Build.VERSION.SDK_INT <= Build.VERSION_CODES.M &&
network.equals(active) && !cm.isActiveNetworkMetered())
return false;
}
}