From 0fd4c17f287dfc8008378bfc225fc709d0605fd1 Mon Sep 17 00:00:00 2001 From: Sylvain Berfini Date: Thu, 16 Feb 2017 16:17:48 +0100 Subject: [PATCH] Fixed contact never found if a change in the native addressbook happens after the first fetch --- src/org/linphone/ContactsManager.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/org/linphone/ContactsManager.java b/src/org/linphone/ContactsManager.java index c1a920868..8da07cc7e 100644 --- a/src/org/linphone/ContactsManager.java +++ b/src/org/linphone/ContactsManager.java @@ -328,8 +328,6 @@ public class ContactsManager extends ContentObserver { boolean found = false; for (LinphoneContact contact : contacts) { if (refkey.equals(contact.getAndroidId())) { - // Native matching contact found, link the friend to it - contact.setFriend(friend); found = true; break; } @@ -341,6 +339,7 @@ public class ContactsManager extends ContentObserver { } else { // Refkey not null but no contact access => can't link it to native contact so display it on is own LinphoneContact contact = new LinphoneContact(); + // Native matching contact found, link the friend to it contact.setFriend(friend); contact.refresh(); if (contact.hasAddress()) {