From 227c31abea5fd56c7795f973c57729afbec3485b Mon Sep 17 00:00:00 2001 From: Guillaume Jacquart Date: Fri, 23 Sep 2022 09:06:44 +0200 Subject: Fix vertical positionning of (i) icon. --- .../main/java/foundation/e/privacycentralapp/common/TextViewHelpers.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'app/src/main/java/foundation/e') 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 -- cgit v1.2.1