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:
parent
8052dfbddf
commit
3f5f478f8c
1 changed files with 2 additions and 0 deletions
|
@ -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");
|
||||
|
|
Loading…
Reference in a new issue