Fixed phone number contacts search
This commit is contained in:
parent
171b17892b
commit
3491ff723f
1 changed files with 2 additions and 2 deletions
|
@ -225,7 +225,7 @@ public class ContactsManager extends ContentObserver {
|
|||
LinphoneContact contact = (LinphoneContact)lf.getUserData();
|
||||
return contact;
|
||||
}
|
||||
return null;
|
||||
return findContactFromPhoneNumber(address.getUsername());
|
||||
}
|
||||
|
||||
public synchronized LinphoneContact findContactFromPhoneNumber(String phoneNumber) {
|
||||
|
@ -242,7 +242,7 @@ public class ContactsManager extends ContentObserver {
|
|||
if (addr == null) {
|
||||
return null;
|
||||
}
|
||||
addr.setMethodParam(";user=phone");
|
||||
addr.setUriParam("user", "phone");
|
||||
Friend lf = lc.findFriend(addr); // Without this, the hashmap inside liblinphone won't find it...
|
||||
if (lf != null) {
|
||||
LinphoneContact contact = (LinphoneContact)lf.getUserData();
|
||||
|
|
Loading…
Reference in a new issue