mirror of
https://github.com/topjohnwu/Magisk.git
synced 2024-11-28 04:25:27 +00:00
Prevent hiding Magisk Manager on old Magisk versions
This commit is contained in:
parent
614a36c888
commit
a356b21895
@ -148,7 +148,7 @@ public class SettingsActivity extends Activity implements Topic.Subscriber {
|
|||||||
suCategory.removePreference(reauth);
|
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) -> {
|
hideManager.setOnPreferenceClickListener((pref) -> {
|
||||||
Utils.runWithPermission(getActivity(),
|
Utils.runWithPermission(getActivity(),
|
||||||
Manifest.permission.WRITE_EXTERNAL_STORAGE,
|
Manifest.permission.WRITE_EXTERNAL_STORAGE,
|
||||||
|
Loading…
Reference in New Issue
Block a user