ignore NICKNAME tag at importing contacts for now

This commit is contained in:
tibbi 2018-07-17 20:35:37 +02:00
parent 3ca7f93986
commit 04df9ef079
2 changed files with 2 additions and 0 deletions

View File

@ -40,6 +40,7 @@ const val PHOTO_UNCHANGED = 4
const val BEGIN_VCARD = "BEGIN:VCARD"
const val END_VCARD = "END:VCARD"
const val N = "N"
const val NICKNAME = "NICKNAME"
const val TEL = "TEL"
const val BDAY = "BDAY:"
const val ANNIVERSARY = "ANNIVERSARY:"

View File

@ -84,6 +84,7 @@ class VcfImporter(val activity: SimpleActivity) {
when {
line.toUpperCase() == BEGIN_VCARD -> resetValues()
line.toUpperCase().startsWith(NOTE) -> addNotes(line.substring(NOTE.length))
line.toUpperCase().startsWith(NICKNAME) -> { }
line.toUpperCase().startsWith(N) -> addNames(line.substring(N.length))
line.toUpperCase().startsWith(TEL) -> addPhoneNumber(line.substring(TEL.length))
line.toUpperCase().startsWith(EMAIL) -> addEmail(line.substring(EMAIL.length))