From 6e2eff713012e3862ce9e0c8fb4c9c27cc6ff34f Mon Sep 17 00:00:00 2001 From: Ztiany Date: Tue, 24 Sep 2019 15:34:00 +0800 Subject: [PATCH] update View Ex --- .../java/com/android/base/utils/android/views/TextViewEx.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib_base/src/main/java/com/android/base/utils/android/views/TextViewEx.kt b/lib_base/src/main/java/com/android/base/utils/android/views/TextViewEx.kt index fcc0239..6540157 100644 --- a/lib_base/src/main/java/com/android/base/utils/android/views/TextViewEx.kt +++ b/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() ?: "" }