From 9656878ef3ad8dbc5c445485dfb5a31961d91f37 Mon Sep 17 00:00:00 2001 From: topjohnwu Date: Tue, 22 Oct 2019 05:06:17 -0400 Subject: [PATCH] Actually apply the input name --- .../java/com/topjohnwu/magisk/ui/settings/SettingsFragment.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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() }