File tree 1 file changed +1
-7
lines changed
app/src/main/java/com/infomaniak/mail/ui/main/thread
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
24
24
import android.text.StaticLayout
25
25
import android.text.TextPaint
26
26
import android.text.TextUtils
27
- import android.util.TypedValue
28
27
import androidx.core.content.res.ResourcesCompat
29
28
import androidx.core.text.toSpannable
30
29
import com.infomaniak.mail.MatomoMail.trackExternalEvent
@@ -143,12 +142,7 @@ object SubjectFormatter {
143
142
144
143
private fun getTagsTextPaint (context : Context ) : TextPaint {
145
144
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)
152
146
tagsTextPaint.typeface = ResourcesCompat .getFont(context, R .font.tag_font)
153
147
tagsTextPaint.density
154
148
You can’t perform that action at this time.
0 commit comments