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")!!
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()
}