diff --git a/app/src/main/java/com/topjohnwu/magisk/ui/settings/SettingsFragment.kt b/app/src/main/java/com/topjohnwu/magisk/ui/settings/SettingsFragment.kt index 3a4012d1b..f191defb3 100644 --- a/app/src/main/java/com/topjohnwu/magisk/ui/settings/SettingsFragment.kt +++ b/app/src/main/java/com/topjohnwu/magisk/ui/settings/SettingsFragment.kt @@ -69,7 +69,7 @@ class SettingsFragment : BasePreferenceFragment() { val hideManager = findPreference("hide")!! hideManager.setOnPreferenceClickListener { showManagerNameDialog { - PatchAPK.hideManager(requireContext(), "Manager") + PatchAPK.hideManager(requireContext(), it) } true } @@ -346,6 +346,7 @@ class SettingsFragment : BasePreferenceFragment() { onSuccess(data.name.value) } } + .setNegativeButton(R.string.close, null) .show() }