Prevent hiding Magisk Manager on old Magisk versions

This commit is contained in:
topjohnwu 2017-11-23 01:05:57 +08:00
parent 614a36c888
commit a356b21895

View File

@ -148,7 +148,7 @@ public class SettingsActivity extends Activity implements Topic.Subscriber {
suCategory.removePreference(reauth);
}
if (mm.getPackageName().equals(Const.ORIG_PKG_NAME)) {
if (mm.getPackageName().equals(Const.ORIG_PKG_NAME) && mm.magiskVersionCode >= 1440) {
hideManager.setOnPreferenceClickListener((pref) -> {
Utils.runWithPermission(getActivity(),
Manifest.permission.WRITE_EXTERNAL_STORAGE,