Trim contact filter while creating room
This commit is contained in:
parent
3de26c02ca
commit
86299287c9
1 changed files with 2 additions and 1 deletions
|
@ -149,13 +149,14 @@ public class SearchContactsListAdapter extends BaseAdapter {
|
|||
}
|
||||
|
||||
public void searchContacts(String search, ListView resultContactsSearch) {
|
||||
if (search == null || search.length() == 0) {
|
||||
if (search == null || search.length() == 0 || search.trim().length() == 0) {
|
||||
contacts = getContactsList();
|
||||
resultContactsSearch.setAdapter(this);
|
||||
oldSize = 0;
|
||||
return;
|
||||
}
|
||||
|
||||
search = search.trim();
|
||||
List<ContactAddress> result = new ArrayList<>();
|
||||
|
||||
String searchAddress = "sip:" + search + "@" + LinphoneManager.getLc().getDefaultProxyConfig().getDomain();
|
||||
|
|
Loading…
Reference in a new issue