catch exceptions thrown at showing big message attachments

This commit is contained in:
tibbi 2022-10-26 19:12:17 +02:00
parent 5f728c9321
commit c850b4d7f3
1 changed files with 5 additions and 1 deletions

View File

@ -384,7 +384,11 @@ class ThreadAdapter(
builder.override(attachment.width, attachment.height) builder.override(attachment.width, attachment.height)
} }
builder.into(imageView.attachment_image) try {
builder.into(imageView.attachment_image)
} catch (ignore: Exception) {
}
imageView.attachment_image.setOnClickListener { imageView.attachment_image.setOnClickListener {
if (actModeCallback.isSelectable) { if (actModeCallback.isSelectable) {
holder.viewClicked(message) holder.viewClicked(message)