mirror of https://github.com/M66B/NetGuard.git
Search package names as well
This commit is contained in:
parent
163d2f6693
commit
d9f06bf824
|
@ -182,7 +182,8 @@ public class RuleAdapter extends RecyclerView.Adapter<RuleAdapter.ViewHolder> im
|
||||||
else {
|
else {
|
||||||
query = query.toString().toLowerCase();
|
query = query.toString().toLowerCase();
|
||||||
for (Rule rule : listAll)
|
for (Rule rule : listAll)
|
||||||
if (rule.name.toLowerCase().contains(query))
|
if (rule.info.packageName.toLowerCase().contains(query) ||
|
||||||
|
(rule.name != null && rule.name.toLowerCase().contains(query)))
|
||||||
listResult.add(rule);
|
listResult.add(rule);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue