Browse Source

Remove internet validated criteria

Not all VPN apps call reportNetworkConnectivity
main
M66B 6 years ago
parent
commit
617f83587c
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      app/src/main/java/eu/faircode/email/ServiceSynchronize.java

+ 2
- 1
app/src/main/java/eu/faircode/email/ServiceSynchronize.java View File

@ -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<TupleAccountStats>() {


Loading…
Cancel
Save