Disable filtering if not available

This commit is contained in:
M66B 2017-04-08 08:44:34 +02:00
parent 8052dfbddf
commit 3f5f478f8c
1 changed files with 2 additions and 0 deletions

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");