add a generic Attachment view for handling others than images and videos

This commit is contained in:
tibbi 2020-04-12 23:11:42 +02:00
parent 9f475ddfad
commit 5c79ca361d
6 changed files with 96 additions and 12 deletions

View file

@ -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)
}
}