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