Fix android system not show in scope list
This commit is contained in:
parent
30db085b79
commit
2fbab81e39
|
|
@ -76,12 +76,6 @@ public class AppAdapter extends RecyclerView.Adapter<AppAdapter.ViewHolder> impl
|
||||||
fullList = pm.getInstalledApplications(PackageManager.GET_META_DATA);
|
fullList = pm.getInstalledApplications(PackageManager.GET_META_DATA);
|
||||||
List<ApplicationInfo> rmList = new ArrayList<>();
|
List<ApplicationInfo> rmList = new ArrayList<>();
|
||||||
for (ApplicationInfo info : fullList) {
|
for (ApplicationInfo info : fullList) {
|
||||||
if (!App.getPreferences().getBoolean("show_modules", true)) {
|
|
||||||
if (info.metaData != null && info.metaData.containsKey("xposedmodule") || AppHelper.FORCE_WHITE_LIST_MODULE.contains(info.packageName)) {
|
|
||||||
rmList.add(info);
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if (this instanceof ScopeAdapter) {
|
if (this instanceof ScopeAdapter) {
|
||||||
if (AppHelper.isBlackListMode()) {
|
if (AppHelper.isBlackListMode()) {
|
||||||
if (AppHelper.isWhiteListMode()) {
|
if (AppHelper.isWhiteListMode()) {
|
||||||
|
|
@ -101,6 +95,10 @@ public class AppAdapter extends RecyclerView.Adapter<AppAdapter.ViewHolder> impl
|
||||||
if (info.packageName.equals(((ScopeAdapter) this).modulePackageName)) {
|
if (info.packageName.equals(((ScopeAdapter) this).modulePackageName)) {
|
||||||
rmList.add(info);
|
rmList.add(info);
|
||||||
}
|
}
|
||||||
|
} else if (!App.getPreferences().getBoolean("show_modules", true)) {
|
||||||
|
if (info.metaData != null && info.metaData.containsKey("xposedmodule") || AppHelper.FORCE_WHITE_LIST_MODULE.contains(info.packageName)) {
|
||||||
|
rmList.add(info);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (rmList.size() > 0) {
|
if (rmList.size() > 0) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue