From 7c1e8b0702bb022104bdfe9177beaba24fcd0f7a Mon Sep 17 00:00:00 2001 From: M66B Date: Sun, 20 Aug 2017 14:31:05 +0200 Subject: [PATCH] Use connectivity action for Android L --- 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 1e7896de..73a36eea 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.LOLLIPOP) + if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) try { listenNetworkChanges(); } catch (Throwable ex) {