[app] Fix app filter
This commit is contained in:
parent
687d4d64c7
commit
5b2bd76816
|
|
@ -148,20 +148,20 @@ public class ScopeAdapter extends RecyclerView.Adapter<ScopeAdapter.ViewHolder>
|
||||||
recommendedList.add(uid);
|
recommendedList.add(uid);
|
||||||
}
|
}
|
||||||
|
|
||||||
AppInfo appInfo = new AppInfo();
|
if (shouldHideApp(info)) {
|
||||||
appInfo.packageInfo = info;
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
if (info.sharedUserId != null) {
|
if (info.sharedUserId != null) {
|
||||||
ArrayList<PackageInfo> packageInfos = sharedUidPackages.computeIfAbsent(info.sharedUserId, k -> new ArrayList<>());
|
ArrayList<PackageInfo> packageInfos = sharedUidPackages.computeIfAbsent(info.sharedUserId, k -> new ArrayList<>());
|
||||||
packageInfos.add(info);
|
packageInfos.add(info);
|
||||||
continue;
|
|
||||||
} else {
|
} else {
|
||||||
|
AppInfo appInfo = new AppInfo();
|
||||||
|
appInfo.packageInfo = info;
|
||||||
appInfo.label = getAppLabel(info.applicationInfo, pm);
|
appInfo.label = getAppLabel(info.applicationInfo, pm);
|
||||||
}
|
|
||||||
|
|
||||||
if (!shouldHideApp(info)) {
|
|
||||||
searchList.add(appInfo);
|
searchList.add(appInfo);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
for (List<PackageInfo> packageInfos : sharedUidPackages.values()) {
|
for (List<PackageInfo> packageInfos : sharedUidPackages.values()) {
|
||||||
AppInfo appInfo = new AppInfo();
|
AppInfo appInfo = new AppInfo();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue