determine the message attachments size at fetching
This commit is contained in:
parent
81b12dea70
commit
7c355e9aae
4 changed files with 28 additions and 6 deletions
|
|
@ -227,7 +227,7 @@ fun Context.getMmsAttachment(id: Int): MessageAttachment? {
|
|||
if (type == "text/plain") {
|
||||
messageAttachment.text = cursor.getStringValue(Mms.Part.TEXT) ?: ""
|
||||
} else if (type.startsWith("image/") || type.startsWith("video/")) {
|
||||
val attachment = Attachment(Uri.withAppendedPath(uri, partId), type)
|
||||
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