Use stricter package name test in magisk hide

This commit is contained in:
tonymanou 2017-01-08 15:51:59 +01:00 committed by topjohnwu
parent 989d8181dd
commit 61d43b118b

View File

@ -55,14 +55,7 @@ public class ApplicationAdapter extends RecyclerView.Adapter<ApplicationAdapter.
holder.appIcon.setImageDrawable(info.loadIcon(packageManager));
holder.appName.setText(info.loadLabel(packageManager));
holder.appPackage.setText(info.packageName);
holder.checkBox.setChecked(false);
for (String hidePackage : mHideList) {
if (info.packageName.contains(hidePackage)) {
holder.checkBox.setChecked(true);
break;
}
}
holder.checkBox.setChecked(mHideList.contains(info.packageName));
holder.checkBox.setOnClickListener(v -> {
CheckBox chkbox = (CheckBox) v;