1
0
Fork 0
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:
M66B 2015-10-30 12:28:21 +01:00
parent 163d2f6693
commit d9f06bf824

View file

@ -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);
} }