make fetching some fields optional, used only at exporting

This commit is contained in:
tibbi
2018-02-22 16:23:04 +01:00
parent f81700c120
commit 7f11945af4
2 changed files with 15 additions and 15 deletions

View File

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