Skip to content
This repository has been archived by the owner on Jul 19, 2018. It is now read-only.

Commit

Permalink
Prevent hiding Magisk Manager on old Magisk versions
Browse files Browse the repository at this point in the history
  • Loading branch information
topjohnwu committed Nov 22, 2017
1 parent 614a36c commit a356b21
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ public void onCreate(Bundle savedInstanceState) {
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,
Expand Down

0 comments on commit a356b21

Please sign in to comment.