Fix indent
This commit is contained in:
parent
1ff455bbae
commit
bece218349
2 changed files with 5 additions and 5 deletions
|
@ -135,7 +135,7 @@ public class ChatCreationFragment extends Fragment implements View.OnClickListen
|
|||
|
||||
@Override
|
||||
public void afterTextChanged(Editable s) {
|
||||
searchAdapter.searchContacts(searchField.getText().toString(), contactsList);
|
||||
searchAdapter.searchContacts(searchField.getText().toString(), contactsList);
|
||||
}
|
||||
});
|
||||
|
||||
|
|
|
@ -170,7 +170,7 @@ public class SearchContactsListAdapter extends BaseAdapter {
|
|||
if (search != null) {
|
||||
for (ContactAddress c : (search.length() < oldSize) ? getContactsList() : getContacts()) {
|
||||
String address = c.getAddress();
|
||||
if (address.equals(searchAddress)) searchFound = true;
|
||||
if (address.equals(searchAddress)) searchFound = true;
|
||||
if (address.startsWith("sip:")) address = address.substring(4);
|
||||
if (c.getContact() != null && c.getContact().getFullName() != null
|
||||
&& c.getContact().getFullName().toLowerCase(Locale.getDefault()).startsWith(search.toLowerCase(Locale.getDefault()))
|
||||
|
@ -180,9 +180,9 @@ public class SearchContactsListAdapter extends BaseAdapter {
|
|||
}
|
||||
}
|
||||
if (!searchFound) {
|
||||
LinphoneContact searchContact = new LinphoneContact();
|
||||
searchContact.setFullName(search);
|
||||
result.add(new ContactAddress(searchContact, searchAddress, false));
|
||||
LinphoneContact searchContact = new LinphoneContact();
|
||||
searchContact.setFullName(search);
|
||||
result.add(new ContactAddress(searchContact, searchAddress, false));
|
||||
}
|
||||
|
||||
oldSize = search.length();
|
||||
|
|
Loading…
Reference in a new issue