Fixed contacts with presence list
This commit is contained in:
parent
a40d65c776
commit
ec295f0bc1
1 changed files with 9 additions and 1 deletions
|
@ -245,7 +245,15 @@ public class ContactsManager extends ContentObserver {
|
||||||
}
|
}
|
||||||
|
|
||||||
public synchronized void setSipContacts(List<LinphoneContact> c) {
|
public synchronized void setSipContacts(List<LinphoneContact> c) {
|
||||||
sipContacts = c;
|
if (sipContacts.isEmpty()) {
|
||||||
|
sipContacts = c;
|
||||||
|
} else {
|
||||||
|
for (LinphoneContact contact : c) {
|
||||||
|
if (!sipContacts.contains(contact)) {
|
||||||
|
sipContacts.add(contact);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public synchronized void refreshSipContact(LinphoneFriend lf) {
|
public synchronized void refreshSipContact(LinphoneFriend lf) {
|
||||||
|
|
Loading…
Reference in a new issue