Fix color resource linking in SignalSymbols.

This commit is contained in:
Sagar
2025-04-30 09:36:02 +05:30
committed by Cody Henthorne
parent 3aa4e75ef3
commit 6dfe3b9c33
2 changed files with 6 additions and 5 deletions

View File

@@ -18,6 +18,7 @@ import androidx.compose.ui.text.SpanStyle
import androidx.compose.ui.text.buildAnnotatedString
import androidx.compose.ui.text.font.FontFamily
import androidx.compose.ui.text.withStyle
import androidx.core.content.ContextCompat
import org.thoughtcrime.securesms.util.SpanUtil
import org.thoughtcrime.securesms.util.ViewUtil
@@ -214,7 +215,7 @@ object SignalSymbols {
text.setSpan(span, 0, text.length, 0)
return if (colorRes != -1) {
SpanUtil.color(colorRes, text)
SpanUtil.color(ContextCompat.getColor(context, colorRes), text)
} else {
text
}