diff options
Diffstat (limited to 'app/src/main/java/foundation/e/privacycentralapp')
-rw-r--r-- | app/src/main/java/foundation/e/privacycentralapp/common/TextViewHelpers.kt | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/src/main/java/foundation/e/privacycentralapp/common/TextViewHelpers.kt b/app/src/main/java/foundation/e/privacycentralapp/common/TextViewHelpers.kt index 1cdc06f..25a3633 100644 --- a/app/src/main/java/foundation/e/privacycentralapp/common/TextViewHelpers.kt +++ b/app/src/main/java/foundation/e/privacycentralapp/common/TextViewHelpers.kt @@ -21,6 +21,7 @@ import android.content.Context import android.content.res.ColorStateList import android.text.Spannable import android.text.SpannableString +import android.text.style.DynamicDrawableSpan import android.text.style.ImageSpan import android.widget.TextView import androidx.annotation.StringRes @@ -51,7 +52,7 @@ private fun asteriskAsInfoIconSpannable( it.setTintList(tint) it.setBounds(0, 0, it.intrinsicWidth, it.intrinsicHeight) spannable.setSpan( - ImageSpan(it), + ImageSpan(it, DynamicDrawableSpan.ALIGN_CENTER), index, index + 1, Spannable.SPAN_INCLUSIVE_INCLUSIVE |