add notes exporting
This commit is contained in:
parent
926ba81bcd
commit
2fa449d60e
|
@ -28,7 +28,6 @@ import com.simplemobiletools.contacts.extensions.getByteArray
|
|||
import com.simplemobiletools.contacts.extensions.getPhotoThumbnailSize
|
||||
import com.simplemobiletools.contacts.models.*
|
||||
|
||||
|
||||
class ContactsHelper(val activity: BaseSimpleActivity) {
|
||||
fun getContacts(callback: (ArrayList<Contact>) -> Unit) {
|
||||
val contacts = SparseArray<Contact>()
|
||||
|
|
|
@ -62,6 +62,10 @@ class VcfExporter {
|
|||
}
|
||||
}
|
||||
|
||||
if (contact.notes.isNotEmpty()) {
|
||||
out.writeLn("$NOTE${contact.notes.replace("\n", "\\n")}")
|
||||
}
|
||||
|
||||
if (contact.thumbnailUri.isNotEmpty()) {
|
||||
val bitmap = MediaStore.Images.Media.getBitmap(activity.contentResolver, Uri.parse(contact.thumbnailUri))
|
||||
addBitmap(bitmap, out)
|
||||
|
|
Loading…
Reference in New Issue