always fetch all contact info to make sure Search works well

This commit is contained in:
tibbi
2018-03-04 10:06:40 +01:00
parent 004cf57385
commit 9ebb72b1b2
4 changed files with 27 additions and 29 deletions

View File

@ -361,7 +361,7 @@ class MainActivity : SimpleActivity(), RefreshContactsListener {
FilePickerDialog(this, pickFile = false, showFAB = true) {
ExportContactsDialog(this, it) { file, contactSources ->
Thread {
ContactsHelper(this).getContacts(true) {
ContactsHelper(this).getContacts {
val contacts = it.filter { contactSources.contains(it.source) }
if (contacts.isEmpty()) {
toast(R.string.no_entries_for_exporting)