From 7b9fc382dc2748c75d111fca792c7bd5d41071d1 Mon Sep 17 00:00:00 2001 From: Ztiany Date: Wed, 25 Sep 2019 12:02:20 +0800 Subject: [PATCH] optimize --- .../src/main/java/com/android/base/app/fragment/Fragments.kt | 1 - .../main/java/com/android/base/utils/android/views/TextViewEx.kt | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/lib_base/src/main/java/com/android/base/app/fragment/Fragments.kt b/lib_base/src/main/java/com/android/base/app/fragment/Fragments.kt index 80ea785..b3887a9 100644 --- a/lib_base/src/main/java/com/android/base/app/fragment/Fragments.kt +++ b/lib_base/src/main/java/com/android/base/app/fragment/Fragments.kt @@ -351,7 +351,6 @@ class EnhanceFragmentTransaction constructor( } } - @Suppress fun setOpeningTransition(): FragmentTransaction { return fragmentTransaction.setTransition(TRANSIT_FRAGMENT_OPEN) } 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 6e32545..dc7fbcc 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 @@ -14,6 +14,7 @@ import androidx.core.content.ContextCompat import com.android.base.interfaces.TextWatcherAdapter import com.google.android.material.textfield.TextInputLayout + inline fun TextView.textWatcher(init: KTextWatcher.() -> Unit) = addTextChangedListener(KTextWatcher().apply(init)) class KTextWatcher : TextWatcher {