diff --git a/app/src/main/java/com/topjohnwu/magisk/adapters/ModulesAdapter.java b/app/src/main/java/com/topjohnwu/magisk/adapters/ModulesAdapter.java index b3a35b6df..781658c50 100644 --- a/app/src/main/java/com/topjohnwu/magisk/adapters/ModulesAdapter.java +++ b/app/src/main/java/com/topjohnwu/magisk/adapters/ModulesAdapter.java @@ -47,10 +47,10 @@ public class ModulesAdapter extends RecyclerView.Adapter { - CheckBox checkBox = (CheckBox) v; - if (checkBox.isChecked()) { + holder.checkBox.setOnCheckedChangeListener((v, isChecked) -> { + if (isChecked) { new Async.RootTask() { @Override protected Void doInBackground(Void... voids) {