Case insensitive

This commit is contained in:
topjohnwu 2016-11-12 00:03:11 +08:00
parent e17638bc06
commit f69facc842

View File

@ -65,8 +65,8 @@ public class MagiskHideFragment extends Fragment {
public boolean onQueryTextChange(String newText) { public boolean onQueryTextChange(String newText) {
fListApps.clear(); fListApps.clear();
for (ApplicationInfo info : listApps) { for (ApplicationInfo info : listApps) {
if (info.loadLabel(packageManager).toString().contains(newText) if (info.loadLabel(packageManager).toString().toLowerCase().contains(newText.toLowerCase())
|| info.packageName.contains(newText)) { || info.packageName.toLowerCase().contains(newText.toLowerCase())) {
fListApps.add(info); fListApps.add(info);
} }
} }