mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-09-07 06:55:59 +02:00
Use toString() instead of risking a ClassCastException
This commit is contained in:
parent
2003d56190
commit
3f8620e026
@ -150,7 +150,7 @@ public class AppBlacklistAdapter extends RecyclerView.Adapter<AppBlacklistAdapte
|
||||
|
||||
for (ApplicationInfo ai : originalList) {
|
||||
CharSequence name = mPm.getApplicationLabel(ai);
|
||||
if (((String) name).contains(filterPattern) ||
|
||||
if (name.toString().contains(filterPattern) ||
|
||||
(ai.packageName.contains(filterPattern))) {
|
||||
filteredList.add(ai);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user