Fixed empty selected addresses in magic search bar if not in contacts
This commit is contained in:
parent
289b645196
commit
f70a204d99
2 changed files with 5 additions and 2 deletions
|
@ -148,7 +148,7 @@ public class ImdnFragment extends Fragment {
|
|||
@Override
|
||||
public void onResume() {
|
||||
super.onResume();
|
||||
|
||||
|
||||
refreshInfo();
|
||||
}
|
||||
|
||||
|
|
|
@ -37,7 +37,6 @@ import org.linphone.core.SearchResult;
|
|||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.Locale;
|
||||
|
||||
public class SearchContactsListAdapter extends BaseAdapter {
|
||||
|
||||
|
@ -178,6 +177,10 @@ public class SearchContactsListAdapter extends BaseAdapter {
|
|||
}
|
||||
}
|
||||
if (sr.getAddress() != null) {
|
||||
if (contact.getFullName() == null) {
|
||||
contact.setFullName(search);
|
||||
}
|
||||
|
||||
boolean found = false;
|
||||
for (ContactAddress ca : result) {
|
||||
if (ca.getAddress().asStringUriOnly().equals(sr.getAddress().asStringUriOnly())) {
|
||||
|
|
Loading…
Reference in a new issue