From 354440ee8a5c73783bef7cb22c4cc9323da5c51b Mon Sep 17 00:00:00 2001 From: topjohnwu Date: Sun, 23 Aug 2020 04:24:06 -0700 Subject: [PATCH] Fix hide manager dialog --- .../java/com/topjohnwu/magisk/ui/settings/SettingsItems.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/com/topjohnwu/magisk/ui/settings/SettingsItems.kt b/app/src/main/java/com/topjohnwu/magisk/ui/settings/SettingsItems.kt index 3e37058fe..ffef1f644 100644 --- a/app/src/main/java/com/topjohnwu/magisk/ui/settings/SettingsItems.kt +++ b/app/src/main/java/com/topjohnwu/magisk/ui/settings/SettingsItems.kt @@ -78,19 +78,19 @@ object Hide : BaseSettingsItem.Input() { override val title = R.string.settings_hide_manager_title.asTransitive() override val description = R.string.settings_hide_manager_summary.asTransitive() - override var value = "Manager" + override var value = "" set(value) = setV(value, field, { field = it }) override val inputResult get() = if (isError) null else result @get:Bindable - var result = value + var result = "Manager" set(value) = set(value, field, { field = it }, BR.result, BR.error) @get:Bindable val isError - get() = value.length > 14 || value.isBlank() + get() = result.length > 14 || result.isBlank() override fun getView(context: Context) = DialogSettingsAppNameBinding .inflate(LayoutInflater.from(context)).also { it.data = this }.root