1
0
Fork 0
mirror of https://github.com/M66B/NetGuard.git synced 2024-12-25 09:21:14 +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 {
query = query.toString().toLowerCase();
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);
}