From 66a20e227537fce6c841425fef19ace1babe71ca Mon Sep 17 00:00:00 2001 From: Howard Wu <40033067+Howard20181@users.noreply.github.com> Date: Tue, 6 Dec 2022 17:37:17 +0800 Subject: [PATCH] Fix checked apps disappearing in the list (#2282) --- .../java/org/lsposed/manager/adapters/ScopeAdapter.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/org/lsposed/manager/adapters/ScopeAdapter.java b/app/src/main/java/org/lsposed/manager/adapters/ScopeAdapter.java index 01f55a7f776..dcc669c73cc 100644 --- a/app/src/main/java/org/lsposed/manager/adapters/ScopeAdapter.java +++ b/app/src/main/java/org/lsposed/manager/adapters/ScopeAdapter.java @@ -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 tmpChkList) { if (info.packageName.equals("android")) { return false; } - if (checkedList.contains(app)) { + if (tmpChkList.contains(app)) { return false; } if (preferences.getBoolean("filter_denylist", false)) { @@ -547,7 +547,7 @@ public void refresh(boolean force) { tmpChkList.add(application); } } - } else if (shouldHideApp(info, application)) { + } else if (shouldHideApp(info, application, tmpChkList)) { return; }