1
0
Fork 0
mirror of https://github.com/M66B/NetGuard.git synced 2025-01-01 12:54:07 +00:00

Disable filtering if not available

This commit is contained in:
M66B 2017-04-08 08:44:34 +02:00
parent 8052dfbddf
commit 3f5f478f8c

View file

@ -100,6 +100,8 @@ public class Receiver extends BroadcastReceiver {
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.LOLLIPOP)
editor.putBoolean("filter", true); // Mandatory
if (!Util.canFilter(context))
editor.putBoolean("filter", false);
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) {
editor.remove("show_top");