Commentary moved

This commit is contained in:
merkost 2023-06-29 22:54:29 +10:00
parent 8a96e7b933
commit 55b7fad3fa
2 changed files with 2 additions and 1 deletions

View file

@ -64,6 +64,8 @@ fun BaseSimpleActivity.shareContacts(contacts: ArrayList<Contact>) {
}
getFileOutputStream(file.toFileDirItem(this), true) {
// whatsApp does not support vCard version 4.0 yet
VcfExporter().exportContacts(this, it, contacts, false, version = VCardVersion.V3_0) {
if (it == VcfExporter.ExportResult.EXPORT_OK) {
sharePathIntent(file.absolutePath, BuildConfig.APPLICATION_ID)

View file

@ -165,7 +165,6 @@ class VcfExporter {
contactsExported++
}
// whatsapp does not support version 4.0 yet
Ezvcard.write(cards).version(version).go(outputStream)
} catch (e: Exception) {
activity.showErrorToast(e)