mirror of
https://github.com/M66B/FairEmail.git
synced 2025-02-25 15:32:52 +00:00
Limit network workaround to Android 6 and earlier
This commit is contained in:
parent
829c417cf1
commit
a7124bfb93
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue