Show icon for common mime types

This commit is contained in:
Naveen 2022-11-05 00:20:04 +05:30
parent 0e3f651687
commit 61a57aa2b5
7 changed files with 49 additions and 2 deletions

View file

@ -90,6 +90,7 @@ class AttachmentsAdapter(
view.setupDocumentPreview(
uri = attachment.uri,
title = attachment.filename,
mimeType = attachment.mimetype,
attachment = true,
onClick = { activity.launchViewIntent(attachment.uri, attachment.mimetype, attachment.filename) },
onRemoveButtonClicked = { removeAttachment(attachment) }

View file

@ -427,6 +427,7 @@ class ThreadAdapter(
setupDocumentPreview(
uri = uri,
title = attachment.filename,
mimeType = attachment.mimetype,
onClick = {
if (actModeCallback.isSelectable) {
holder.viewClicked(message)