mirror of https://github.com/M66B/FairEmail.git
Fixed VPN only for Android 5/6
This commit is contained in:
parent
337db180f0
commit
6f3e293df2
|
@ -252,6 +252,8 @@ public class ConnectionHelper {
|
||||||
NetworkInfo ani = cm.getActiveNetworkInfo();
|
NetworkInfo ani = cm.getActiveNetworkInfo();
|
||||||
if (ani == null || !ani.isConnected())
|
if (ani == null || !ani.isConnected())
|
||||||
return null;
|
return null;
|
||||||
|
if (vpn_only && !vpnActive(context))
|
||||||
|
return null;
|
||||||
return cm.isActiveNetworkMetered();
|
return cm.isActiveNetworkMetered();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue