Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 227c31ab authored by Guillaume Jacquart's avatar Guillaume Jacquart
Browse files

Fix vertical positionning of (i) icon.

parent 15fc60ed
Loading
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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