Search package names as well

This commit is contained in:
M66B 2015-10-30 12:28:21 +01:00
parent 163d2f6693
commit d9f06bf824
1 changed files with 2 additions and 1 deletions

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