Close vCard writer

pull/207/head
M66B 3 years ago
parent cb727e6c0f
commit 8f9dda9878

@ -421,10 +421,11 @@ public class FragmentContacts extends FragmentBase {
ContentResolver resolver = context.getContentResolver();
try (OutputStream os = resolver.openOutputStream(uri)) {
VCardWriter writer = new VCardWriter(os, VCardVersion.V3_0);
try (VCardWriter writer = new VCardWriter(os, VCardVersion.V3_0)) {
for (VCard vcard : vcards)
writer.write(vcard);
}
}
EntityLog.log(context, "Exported" +
" contacts=" + contacts.size() +

Loading…
Cancel
Save