1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-12-15 05:07:54 +01:00

Fix searching in application name when blacklisting.

The filter pattern is forced to lowercase, so also che application names
should be.

Fixes #1482
This commit is contained in:
Daniele Gobbetti 2019-04-21 21:21:21 +02:00
parent 9aadb2f2fd
commit 2a8fe5c3a0

View File

@ -223,7 +223,7 @@ public class AppBlacklistAdapter extends RecyclerView.Adapter<AppBlacklistAdapte
for (ApplicationInfo ai : originalList) { for (ApplicationInfo ai : originalList) {
CharSequence name = mPm.getApplicationLabel(ai); CharSequence name = mPm.getApplicationLabel(ai);
if (name.toString().contains(filterPattern) || if (name.toString().toLowerCase().contains(filterPattern) ||
(ai.packageName.contains(filterPattern))) { (ai.packageName.contains(filterPattern))) {
filteredList.add(ai); filteredList.add(ai);
} }