add a generic Attachment view for handling others than images and videos
This commit is contained in:
parent
9f475ddfad
commit
5c79ca361d
6 changed files with 96 additions and 12 deletions
|
|
@ -230,6 +230,9 @@ fun Context.getMmsAttachment(id: Int): MessageAttachment? {
|
|||
} else if (type.startsWith("image/") || type.startsWith("video/")) {
|
||||
val attachment = Attachment(Uri.withAppendedPath(uri, partId), type, 0, 0)
|
||||
messageAttachment.attachments.add(attachment)
|
||||
} else if (type != "application/smil") {
|
||||
val attachment = Attachment(Uri.withAppendedPath(uri, partId), type, 0, 0)
|
||||
messageAttachment.attachments.add(attachment)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue