Show icon for common mime types
This commit is contained in:
parent
0e3f651687
commit
61a57aa2b5
7 changed files with 49 additions and 2 deletions
|
|
@ -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) }
|
||||
|
|
|
|||
|
|
@ -427,6 +427,7 @@ class ThreadAdapter(
|
|||
setupDocumentPreview(
|
||||
uri = uri,
|
||||
title = attachment.filename,
|
||||
mimeType = attachment.mimetype,
|
||||
onClick = {
|
||||
if (actModeCallback.isSelectable) {
|
||||
holder.viewClicked(message)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue