mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-22 01:40:07 +01:00
Fix color resource linking in SignalSymbols.
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user