From 23353234f29727a043dbdfa1e79d3fc03eaba00a Mon Sep 17 00:00:00 2001 From: M66B Date: Sat, 9 Sep 2017 08:05:32 +0200 Subject: [PATCH] Use network callbacks for Android 6 Marshmallow --- app/src/main/java/eu/faircode/netguard/ServiceSinkhole.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/eu/faircode/netguard/ServiceSinkhole.java b/app/src/main/java/eu/faircode/netguard/ServiceSinkhole.java index fd7c39e3..97c979a0 100644 --- a/app/src/main/java/eu/faircode/netguard/ServiceSinkhole.java +++ b/app/src/main/java/eu/faircode/netguard/ServiceSinkhole.java @@ -2214,7 +2214,7 @@ public class ServiceSinkhole extends VpnService implements SharedPreferences.OnS registerReceiver(packageChangedReceiver, ifPackage); registeredPackageChanged = true; - if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) + if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) try { listenNetworkChanges(); } catch (Throwable ex) {