update View Ex

androidx
Ztiany 5 years ago
parent e66f6a8a3f
commit 6e2eff7130
  1. 4
      lib_base/src/main/java/com/android/base/utils/android/views/TextViewEx.kt

@ -125,12 +125,12 @@ fun Button.enableByEditText(et: EditText, checker: (s: CharSequence?) -> Boolean
})
}
fun TextInputLayout.textStr(): String {
fun TextInputLayout.textString(): String {
val editText = this.editText
return editText?.text?.toString() ?: ""
}
fun EditText.textStr(): String {
fun EditText.textString(): String {
return this.text?.toString() ?: ""
}

Loading…
Cancel
Save