Added back findContactsByChar

This commit is contained in:
Sylvain Berfini 2017-10-19 15:32:31 +02:00
parent 172ba40611
commit d19b934e9e
2 changed files with 3 additions and 4 deletions

View file

@ -114,8 +114,7 @@ public class SearchContactsListAdapter extends BaseAdapter {
public List<ContactAddress> getContactsList() { public List<ContactAddress> getContactsList() {
List<ContactAddress> list = new ArrayList<ContactAddress>(); List<ContactAddress> list = new ArrayList<ContactAddress>();
if (ContactsManager.getInstance().hasContacts()) { if (ContactsManager.getInstance().hasContacts()) {
//TODO FIXME for (Address addr : LinphoneManager.getLc().findContactsByChar("", mOnlySipContact)) {
/*for (Address addr : LinphoneManager.getLc().findContactsByChar("", mOnlySipContact)) {
LinphoneContact cont = ContactsManager.getInstance().findContactFromAddress(addr); LinphoneContact cont = ContactsManager.getInstance().findContactFromAddress(addr);
if (cont == null) { if (cont == null) {
cont = new LinphoneContact(); cont = new LinphoneContact();
@ -125,7 +124,7 @@ public class SearchContactsListAdapter extends BaseAdapter {
// TODO Rechercher si un displayname est associé à cette sip uri // TODO Rechercher si un displayname est associé à cette sip uri
ContactAddress ca = new ContactAddress(cont , addr.asString(), cont.isFriend()); ContactAddress ca = new ContactAddress(cont , addr.asString(), cont.isFriend());
list.add(ca); list.add(ca);
}*/ }
} }
for (ContactAddress caS : contactsSelected) { for (ContactAddress caS : contactsSelected) {

@ -1 +1 @@
Subproject commit ddf3fe65e2941763c936e8d2c6da23ae1e22bc90 Subproject commit f291076f8816ca634b4e815eded9786a96e9f28a