From 27188c5b72d8abd96fd4b26c032b90ca9775763c Mon Sep 17 00:00:00 2001 From: kunfei Date: Tue, 17 Sep 2019 16:52:52 +0800 Subject: [PATCH] up --- .../java/io/legado/app/ui/config/WebDavConfigFragment.kt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/io/legado/app/ui/config/WebDavConfigFragment.kt b/app/src/main/java/io/legado/app/ui/config/WebDavConfigFragment.kt index bfc2ca0ef..0d6e77503 100644 --- a/app/src/main/java/io/legado/app/ui/config/WebDavConfigFragment.kt +++ b/app/src/main/java/io/legado/app/ui/config/WebDavConfigFragment.kt @@ -20,7 +20,10 @@ class WebDavConfigFragment : PreferenceFragmentCompat(), Preference.OnPreference bindPreferenceSummaryToValue(findPreference("web_dav_url")) bindPreferenceSummaryToValue(findPreference("web_dav_account")) findPreference("web_dav_password")?.let { - it.inputType = InputType.TYPE_TEXT_VARIATION_PASSWORD or InputType.TYPE_CLASS_TEXT + it.setOnBindEditTextListener { editText -> + editText.inputType = + InputType.TYPE_TEXT_VARIATION_PASSWORD or InputType.TYPE_CLASS_TEXT + } bindPreferenceSummaryToValue(it) } }