mirror of
https://github.com/M66B/NetGuard.git
synced 2024-12-26 01:38:07 +00:00
Search package names as well
This commit is contained in:
parent
163d2f6693
commit
d9f06bf824
1 changed files with 2 additions and 1 deletions
|
@ -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 a new issue