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:
parent
9aadb2f2fd
commit
2a8fe5c3a0
@ -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);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user