From 27829ee3377ec75a03b02b754df11ca1238fc198 Mon Sep 17 00:00:00 2001 From: kunfei Date: Tue, 17 Sep 2019 16:49:55 +0800 Subject: [PATCH] up --- .../io/legado/app/lib/theme/prefs/ATEEditTextPreference.kt | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/app/src/main/java/io/legado/app/lib/theme/prefs/ATEEditTextPreference.kt b/app/src/main/java/io/legado/app/lib/theme/prefs/ATEEditTextPreference.kt index eeba79c78..4828e1d66 100644 --- a/app/src/main/java/io/legado/app/lib/theme/prefs/ATEEditTextPreference.kt +++ b/app/src/main/java/io/legado/app/lib/theme/prefs/ATEEditTextPreference.kt @@ -27,7 +27,6 @@ class ATEEditTextPreference(context: Context?, attrs: AttributeSet?) : private var builder: AlertDialog.Builder? = null private var dialog: AlertDialog? = null private var editText: EditText? = null - var inputType: Int? = null /** Which button was clicked. */ private var mWhichButtonClicked: Int = 0 @@ -91,9 +90,7 @@ class ATEEditTextPreference(context: Context?, attrs: AttributeSet?) : checkNotNull(editText) { "Dialog view must contain an EditText with id" + " @android:id/edit" } view.findViewById(android.R.id.message).visibility = View.GONE - inputType?.let { - editText?.inputType = it - } + editText?.let { ATH.setTint(it, ThemeStore.accentColor(context)) it.requestFocus()