summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorGuillaume Jacquart <guillaume.jacquart-ext@mousquetaires.com>2022-09-23 09:06:44 +0200
committerGuillaume Jacquart <guillaume.jacquart-ext@mousquetaires.com>2022-09-23 09:06:44 +0200
commit227c31abea5fd56c7795f973c57729afbec3485b (patch)
tree38548878bead6f07139fb89d940daf13596a8ee0 /app
parent15fc60edf7b9dbda7be96dbafb316edc70a016b6 (diff)
Fix vertical positionning of (i) icon.
Diffstat (limited to 'app')
-rw-r--r--app/src/main/java/foundation/e/privacycentralapp/common/TextViewHelpers.kt3
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