[app] Reverse logic for filter option (#515)
This commit is contained in:
parent
6f1ad1443e
commit
ee49c01ccf
|
|
@ -190,12 +190,12 @@ public class ScopeAdapter extends RecyclerView.Adapter<ScopeAdapter.ViewHolder>
|
|||
if (checkedList.contains(app)) {
|
||||
return false;
|
||||
}
|
||||
if (!preferences.getBoolean("filter_modules", true)) {
|
||||
if (preferences.getBoolean("filter_modules", true)) {
|
||||
if (info.applicationInfo.metaData != null && info.applicationInfo.metaData.containsKey("xposedmodule")) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
if (!preferences.getBoolean("filter_games", true)) {
|
||||
if (preferences.getBoolean("filter_games", true)) {
|
||||
if (info.applicationInfo.category == ApplicationInfo.CATEGORY_GAME) {
|
||||
return true;
|
||||
}
|
||||
|
|
@ -207,7 +207,7 @@ public class ScopeAdapter extends RecyclerView.Adapter<ScopeAdapter.ViewHolder>
|
|||
if ((info.applicationInfo.flags & ApplicationInfo.FLAG_HAS_CODE) == 0) {
|
||||
return true;
|
||||
}
|
||||
return !preferences.getBoolean("filter_system_apps", true) && (info.applicationInfo.flags & ApplicationInfo.FLAG_SYSTEM) != 0;
|
||||
return preferences.getBoolean("filter_system_apps", true) && (info.applicationInfo.flags & ApplicationInfo.FLAG_SYSTEM) != 0;
|
||||
}
|
||||
|
||||
private List<AppInfo> sortApps(List<AppInfo> list) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue