1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-11-25 03:16:51 +01:00

Use toString() instead of risking a ClassCastException

This commit is contained in:
cpfeiffer 2017-04-22 21:16:40 +02:00
parent 2003d56190
commit 3f8620e026

View File

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