diff --git a/lib/src/main/java/com/basistheory/android/view/TextElement.kt b/lib/src/main/java/com/basistheory/android/view/TextElement.kt index de22967e..8f819956 100644 --- a/lib/src/main/java/com/basistheory/android/view/TextElement.kt +++ b/lib/src/main/java/com/basistheory/android/view/TextElement.kt @@ -94,6 +94,10 @@ open class TextElement @JvmOverloads constructor( hintTextColor = getColor(R.styleable.TextElement_android_textColorHint, Color.LTGRAY) + if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) { + textAutofillHints = getString(R.styleable.TextElement_android_autofillHints)?.split(",")?.toTypedArray() + } + typeface = resolveTypeface( getInt(R.styleable.TextElement_android_typeface, 0), defStyleAttr @@ -263,7 +267,7 @@ open class TextElement @JvmOverloads constructor( checkIcon?.setTint(value) } - var autoFillHints: Array? + var textAutofillHints: Array? @RequiresApi(Build.VERSION_CODES.O) get() = _editText.autofillHints @RequiresApi(Build.VERSION_CODES.O) diff --git a/lib/src/main/res/values/attrs.xml b/lib/src/main/res/values/attrs.xml index e1944c73..1fab2d7c 100644 --- a/lib/src/main/res/values/attrs.xml +++ b/lib/src/main/res/values/attrs.xml @@ -10,6 +10,7 @@ +