mirror of
https://github.com/topjohnwu/Magisk.git
synced 2024-12-27 07:17:38 +00:00
Case insensitive
This commit is contained in:
parent
e17638bc06
commit
f69facc842
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user