adding some crashfixes

This commit is contained in:
tibbi 2021-09-24 21:35:37 +02:00
parent 8e843eece1
commit 18026c473f
2 changed files with 7 additions and 4 deletions

View file

@ -657,6 +657,10 @@ class ThreadActivity : SimpleActivity() {
}
private fun loadAttachmentPreview(attachmentView: View, uri: Uri) {
if (isDestroyed || isFinishing) {
return
}
val roundedCornersRadius = resources.getDimension(R.dimen.medium_margin).toInt()
val options = RequestOptions()
.diskCacheStrategy(DiskCacheStrategy.NONE)