android: Fix #117

This commit is contained in:
Harry Cheng 2022-06-11 11:47:57 +08:00
parent 2b89ee699e
commit c6caf87a0a

View File

@ -411,7 +411,10 @@ fun MarkdownMessageItem(message: MessageEntity, requestHolder: RequestHolder) {
CardItemWithContent {
AndroidView(
factory = { ctx ->
android.widget.TextView(ctx).apply {
android.widget.TextView(ctx)
},
update = { view ->
view.apply {
this.post {
requestHolder.markdown.setMarkdown(
this,
@ -419,7 +422,8 @@ fun MarkdownMessageItem(message: MessageEntity, requestHolder: RequestHolder) {
)
}
}
}, modifier = Modifier
},
modifier = Modifier
.fillMaxWidth()
.padding(16.dp)
)