mirror of
https://github.com/M66B/FairEmail.git
synced 2025-01-03 13:44:40 +00:00
Updated vCard library
This commit is contained in:
parent
f2fe7d8695
commit
36188126d3
2 changed files with 5 additions and 3 deletions
|
@ -489,7 +489,7 @@ dependencies {
|
|||
def badge_version = "1.1.22"
|
||||
def bugsnag_version = "5.28.2"
|
||||
def biweekly_version = "0.6.6"
|
||||
def vcard_version = "0.11.3"
|
||||
def vcard_version = "0.12.1"
|
||||
def relinker_version = "1.4.5"
|
||||
def markwon_version = "4.6.2"
|
||||
def bouncycastle_version = "1.76"
|
||||
|
|
|
@ -1267,8 +1267,10 @@ public class MessageHelper {
|
|||
attachment.id = db.attachment().insertAttachment(attachment);
|
||||
|
||||
File file = attachment.getFile(context);
|
||||
try (VCardWriter writer = new VCardWriter(file, VCardVersion.V3_0)) {
|
||||
writer.write(vcard);
|
||||
try (OutputStream os = new FileOutputStream(file)) {
|
||||
try (VCardWriter writer = new VCardWriter(os, VCardVersion.V3_0)) {
|
||||
writer.write(vcard);
|
||||
}
|
||||
}
|
||||
|
||||
attachment.size = file.length();
|
||||
|
|
Loading…
Reference in a new issue