mirror of
https://gitlab.linphone.org/BC/public/linphone-android.git
synced 2026-01-17 19:38:08 +00:00
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…
Add table
Reference in a new issue