Extend local contact info

This commit is contained in:
M66B
2019-03-14 17:46:45 +00:00
parent 013cb9e965
commit 0a80d21534
7 changed files with 1639 additions and 39 deletions

View File

@@ -714,7 +714,7 @@ public class ActivitySetup extends ActivityBilling implements FragmentManager.On
for (int c = 0; c < jcontacts.length(); c++) {
JSONObject jcontact = (JSONObject) jcontacts.get(c);
EntityContact contact = EntityContact.fromJSON(jcontact);
if (db.contact().getContacts(contact.type, contact.email).size() == 0) {
if (db.contact().getContact(contact.type, contact.email) == null) {
contact.id = db.contact().insertContact(contact);
Log.i("Imported contact=" + contact);
}