1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2025-02-21 21:57:19 +00:00

Fixed VPN only for Android 5/6

This commit is contained in:
M66B 2022-04-23 08:47:46 +02:00
parent 337db180f0
commit 6f3e293df2

View file

@ -252,6 +252,8 @@ public class ConnectionHelper {
NetworkInfo ani = cm.getActiveNetworkInfo();
if (ani == null || !ani.isConnected())
return null;
if (vpn_only && !vpnActive(context))
return null;
return cm.isActiveNetworkMetered();
}