Actually apply the input name

This commit is contained in:
topjohnwu 2019-10-22 05:06:17 -04:00
parent 7ded7de39a
commit 9656878ef3

View File

@ -69,7 +69,7 @@ class SettingsFragment : BasePreferenceFragment() {
val hideManager = findPreference<Preference>("hide")!! val hideManager = findPreference<Preference>("hide")!!
hideManager.setOnPreferenceClickListener { hideManager.setOnPreferenceClickListener {
showManagerNameDialog { showManagerNameDialog {
PatchAPK.hideManager(requireContext(), "Manager") PatchAPK.hideManager(requireContext(), it)
} }
true true
} }
@ -346,6 +346,7 @@ class SettingsFragment : BasePreferenceFragment() {
onSuccess(data.name.value) onSuccess(data.name.value)
} }
} }
.setNegativeButton(R.string.close, null)
.show() .show()
} }