Commentary moved
This commit is contained in:
parent
8a96e7b933
commit
55b7fad3fa
|
@ -64,6 +64,8 @@ fun BaseSimpleActivity.shareContacts(contacts: ArrayList<Contact>) {
|
||||||
}
|
}
|
||||||
|
|
||||||
getFileOutputStream(file.toFileDirItem(this), true) {
|
getFileOutputStream(file.toFileDirItem(this), true) {
|
||||||
|
|
||||||
|
// whatsApp does not support vCard version 4.0 yet
|
||||||
VcfExporter().exportContacts(this, it, contacts, false, version = VCardVersion.V3_0) {
|
VcfExporter().exportContacts(this, it, contacts, false, version = VCardVersion.V3_0) {
|
||||||
if (it == VcfExporter.ExportResult.EXPORT_OK) {
|
if (it == VcfExporter.ExportResult.EXPORT_OK) {
|
||||||
sharePathIntent(file.absolutePath, BuildConfig.APPLICATION_ID)
|
sharePathIntent(file.absolutePath, BuildConfig.APPLICATION_ID)
|
||||||
|
|
|
@ -165,7 +165,6 @@ class VcfExporter {
|
||||||
contactsExported++
|
contactsExported++
|
||||||
}
|
}
|
||||||
|
|
||||||
// whatsapp does not support version 4.0 yet
|
|
||||||
Ezvcard.write(cards).version(version).go(outputStream)
|
Ezvcard.write(cards).version(version).go(outputStream)
|
||||||
} catch (e: Exception) {
|
} catch (e: Exception) {
|
||||||
activity.showErrorToast(e)
|
activity.showErrorToast(e)
|
||||||
|
|
Loading…
Reference in New Issue