From f69facc8424001b30ec68ae04d0f990ceaa85288 Mon Sep 17 00:00:00 2001 From: topjohnwu Date: Sat, 12 Nov 2016 00:03:11 +0800 Subject: [PATCH] Case insensitive --- .../main/java/com/topjohnwu/magisk/MagiskHideFragment.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/com/topjohnwu/magisk/MagiskHideFragment.java b/app/src/main/java/com/topjohnwu/magisk/MagiskHideFragment.java index eea6259fc..6ac2f60fe 100644 --- a/app/src/main/java/com/topjohnwu/magisk/MagiskHideFragment.java +++ b/app/src/main/java/com/topjohnwu/magisk/MagiskHideFragment.java @@ -65,8 +65,8 @@ public class MagiskHideFragment extends Fragment { public boolean onQueryTextChange(String newText) { fListApps.clear(); for (ApplicationInfo info : listApps) { - if (info.loadLabel(packageManager).toString().contains(newText) - || info.packageName.contains(newText)) { + if (info.loadLabel(packageManager).toString().toLowerCase().contains(newText.toLowerCase()) + || info.packageName.toLowerCase().contains(newText.toLowerCase())) { fListApps.add(info); } }