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()