minor formatting
This commit is contained in:
parent
6bf9d6399e
commit
83677681e9
1 changed files with 2 additions and 3 deletions
|
|
@ -334,9 +334,8 @@ fun Context.getMmsAttachment(id: Long, getImageResolutions: Boolean): MessageAtt
|
||||||
val attachment = Attachment(partId, id, fileUri.toString(), mimetype, width, height, "")
|
val attachment = Attachment(partId, id, fileUri.toString(), mimetype, width, height, "")
|
||||||
messageAttachment.attachments.add(attachment)
|
messageAttachment.attachments.add(attachment)
|
||||||
} else if (mimetype != "application/smil") {
|
} else if (mimetype != "application/smil") {
|
||||||
val attachment = Attachment(
|
val attachmentName = attachmentNames?.getOrNull(attachmentCount) ?: ""
|
||||||
partId, id, Uri.withAppendedPath(uri, partId.toString()).toString(), mimetype, 0, 0, attachmentNames?.getOrNull(attachmentCount) ?: ""
|
val attachment = Attachment(partId, id, Uri.withAppendedPath(uri, partId.toString()).toString(), mimetype, 0, 0, attachmentName)
|
||||||
)
|
|
||||||
messageAttachment.attachments.add(attachment)
|
messageAttachment.attachments.add(attachment)
|
||||||
attachmentCount++
|
attachmentCount++
|
||||||
} else {
|
} else {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue