Fixed SIP contacts list not having presence contacts

This commit is contained in:
Sylvain Berfini 2018-09-04 15:07:00 +02:00
parent 1df6af8691
commit 4de45488bd

View file

@ -92,6 +92,13 @@ public class ContactsManager extends ContentObserver implements FriendListListen
if (LinphoneManager.getLcIfManagerNotDestroyedOrNull() != null) {
magicSearch = LinphoneManager.getLcIfManagerNotDestroyedOrNull().createMagicSearch();
}
Core lc = LinphoneManager.getLcIfManagerNotDestroyedOrNull();
if (lc != null) {
for (FriendList list : lc.getFriendsLists()) {
list.setListener(this);
}
}
}
public void destroy() {