mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-27 11:25:13 +01:00
Fixed VPN only for Android 5/6
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user