ignore NICKNAME tag at importing contacts for now
This commit is contained in:
parent
3ca7f93986
commit
04df9ef079
|
@ -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:"
|
||||
|
|
|
@ -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))
|
||||
|
|
Loading…
Reference in New Issue