From 617f83587c7fbfbd3fbbf37b30a9eaff979c122f Mon Sep 17 00:00:00 2001 From: M66B Date: Fri, 10 Aug 2018 13:43:54 +0000 Subject: [PATCH] Remove internet validated criteria Not all VPN apps call reportNetworkConnectivity --- app/src/main/java/eu/faircode/email/ServiceSynchronize.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/eu/faircode/email/ServiceSynchronize.java b/app/src/main/java/eu/faircode/email/ServiceSynchronize.java index 799efeaf..e0a12f50 100644 --- a/app/src/main/java/eu/faircode/email/ServiceSynchronize.java +++ b/app/src/main/java/eu/faircode/email/ServiceSynchronize.java @@ -131,7 +131,8 @@ public class ServiceSynchronize extends LifecycleService { ConnectivityManager cm = (ConnectivityManager) getSystemService(Context.CONNECTIVITY_SERVICE); NetworkRequest.Builder builder = new NetworkRequest.Builder(); builder.addCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET); - builder.addCapability(NetworkCapabilities.NET_CAPABILITY_VALIDATED); + // Removed because of Android VPN service + // builder.addCapability(NetworkCapabilities.NET_CAPABILITY_VALIDATED); cm.registerNetworkCallback(builder.build(), networkCallback); DB.getInstance(this).account().liveStats().observe(this, new Observer() {