mirror of
https://github.com/nextcloud/talk-android
synced 2025-06-20 12:09:45 +01:00
fix markdown checked item theming
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
This commit is contained in:
parent
dea6645002
commit
1b10c08d7e
@ -363,7 +363,7 @@ class TalkSpecificViewThemeUtils @Inject constructor(
|
|||||||
fun themeMarkdown(context: Context, message: String, incoming: Boolean): Spanned {
|
fun themeMarkdown(context: Context, message: String, incoming: Boolean): Spanned {
|
||||||
return withScheme(context) { scheme ->
|
return withScheme(context) { scheme ->
|
||||||
return@withScheme if (incoming) {
|
return@withScheme if (incoming) {
|
||||||
MessageUtils(context).getRenderedMarkdownText(context, message, R.color.nc_incoming_text_default)
|
MessageUtils(context).getRenderedMarkdownText(context, message, context.getColor(R.color.nc_incoming_text_default))
|
||||||
} else {
|
} else {
|
||||||
MessageUtils(context).getRenderedMarkdownText(context, message, scheme.onSurfaceVariant)
|
MessageUtils(context).getRenderedMarkdownText(context, message, scheme.onSurfaceVariant)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user