File tree Expand file tree Collapse file tree 1 file changed +1
-7
lines changed
app/src/main/java/com/infomaniak/mail/ui/main/thread Expand file tree Collapse file tree 1 file changed +1
-7
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,6 @@ import android.text.Spannable
2424import android.text.StaticLayout
2525import android.text.TextPaint
2626import android.text.TextUtils
27- import android.util.TypedValue
2827import androidx.core.content.res.ResourcesCompat
2928import androidx.core.text.toSpannable
3029import com.infomaniak.mail.MatomoMail.trackExternalEvent
@@ -143,12 +142,7 @@ object SubjectFormatter {
143142
144143 private fun getTagsTextPaint (context : Context ) : TextPaint {
145144 val tagsTextPaint = TextPaint (Paint .ANTI_ALIAS_FLAG )
146- val tagsTextDimension = 12f
147- tagsTextPaint.textSize = TypedValue .applyDimension(
148- TypedValue .COMPLEX_UNIT_SP ,
149- tagsTextDimension,
150- Resources .getSystem().displayMetrics
151- )
145+ tagsTextPaint.textSize = context.resources.getDimension(R .dimen.externalTagTextSize)
152146 tagsTextPaint.typeface = ResourcesCompat .getFont(context, R .font.tag_font)
153147 tagsTextPaint.density
154148
You can’t perform that action at this time.
0 commit comments