Skip to content

Commit

Permalink
Fix checked apps disappearing in the list (LSPosed#2282)
Browse files Browse the repository at this point in the history
  • Loading branch information
Howard20181 authored Dec 6, 2022
1 parent 2294fc8 commit 66a20e2
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -164,11 +164,11 @@ public ViewHolder onCreateViewHolder(@NonNull ViewGroup parent, int viewType) {
return new ViewHolder(ItemModuleBinding.inflate(activity.getLayoutInflater(), parent, false));
}

private boolean shouldHideApp(PackageInfo info, ApplicationWithEquals app) {
private boolean shouldHideApp(PackageInfo info, ApplicationWithEquals app, HashSet<ScopeAdapter.ApplicationWithEquals> tmpChkList) {
if (info.packageName.equals("android")) {
return false;
}
if (checkedList.contains(app)) {
if (tmpChkList.contains(app)) {
return false;
}
if (preferences.getBoolean("filter_denylist", false)) {
Expand Down Expand Up @@ -547,7 +547,7 @@ public void refresh(boolean force) {
tmpChkList.add(application);
}
}
} else if (shouldHideApp(info, application)) {
} else if (shouldHideApp(info, application, tmpChkList)) {
return;
}

Expand Down

0 comments on commit 66a20e2

Please sign in to comment.