From 7645864e46515d1b9c91d282d27c84dc2633567c Mon Sep 17 00:00:00 2001 From: M66B Date: Sun, 22 Mar 2020 19:47:36 +0100 Subject: [PATCH] Refactoring --- app/src/main/java/eu/faircode/netguard/ServiceSinkhole.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/src/main/java/eu/faircode/netguard/ServiceSinkhole.java b/app/src/main/java/eu/faircode/netguard/ServiceSinkhole.java index ed461951..82c907bf 100644 --- a/app/src/main/java/eu/faircode/netguard/ServiceSinkhole.java +++ b/app/src/main/java/eu/faircode/netguard/ServiceSinkhole.java @@ -1250,9 +1250,8 @@ public class ServiceSinkhole extends VpnService implements SharedPreferences.OnS Builder builder = new Builder(); builder.setSession(getString(R.string.app_name)); - if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q) { + if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q) builder.setMetered(Util.isMeteredNetwork(this)); - } // VPN address String vpn4 = prefs.getString("vpn4", "10.1.10.1");