pull/34/head
kunfei 5 years ago
parent 27829ee337
commit 27188c5b72
  1. 5
      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<ATEEditTextPreference>("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)
}
}

Loading…
Cancel
Save