Fixed contacts fetch during longer each time it is called
This commit is contained in:
parent
e602d15b75
commit
14ef7c35b9
2 changed files with 5 additions and 0 deletions
|
@ -278,6 +278,7 @@ public class ContactsManager extends ContentObserver {
|
|||
for (LinphoneFriend friend : lc.getFriendList()) {
|
||||
LinphoneContact contact = (LinphoneContact)((LinphoneFriendImpl)friend).getUserData();
|
||||
if (contact != null) {
|
||||
contact.clearAddresses();
|
||||
contacts.add(contact);
|
||||
if (contact.getAndroidId() != null) {
|
||||
androidContactsCache.put(contact.getAndroidId(), contact);
|
||||
|
|
|
@ -501,6 +501,10 @@ public class LinphoneContact implements Serializable, Comparable<LinphoneContact
|
|||
}
|
||||
}
|
||||
|
||||
public void clearAddresses() {
|
||||
addresses.clear();
|
||||
}
|
||||
|
||||
public void refresh() {
|
||||
addresses = new ArrayList<LinphoneNumberOrAddress>();
|
||||
if (isAndroidContact()) {
|
||||
|
|
Loading…
Reference in a new issue