mirror of
https://github.com/SimpleMobileTools/Simple-Contacts.git
synced 2025-06-05 21:59:27 +02:00
@ -85,7 +85,6 @@ fun SimpleActivity.showContactSourcePicker(currentSource: String, callback: (new
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
fun BaseSimpleActivity.shareContacts(contacts: ArrayList<Contact>) {
|
fun BaseSimpleActivity.shareContacts(contacts: ArrayList<Contact>) {
|
||||||
val file = getTempFile()
|
val file = getTempFile()
|
||||||
if (file == null) {
|
if (file == null) {
|
||||||
|
@ -35,11 +35,11 @@ class ContactsHelper(val context: Context) {
|
|||||||
|
|
||||||
if (getAll) {
|
if (getAll) {
|
||||||
displayContactSources = if (ignoredContactSources.isEmpty()) {
|
displayContactSources = if (ignoredContactSources.isEmpty()) {
|
||||||
context.getAllContactSources().map { it.getFullIdentifier() }.toMutableList() as ArrayList
|
context.getAllContactSources().map { it.name }.toMutableList() as ArrayList
|
||||||
} else {
|
} else {
|
||||||
context.getAllContactSources().filter {
|
context.getAllContactSources().filter {
|
||||||
it.getFullIdentifier().isNotEmpty() && !ignoredContactSources.contains(it.getFullIdentifier())
|
it.getFullIdentifier().isNotEmpty() && !ignoredContactSources.contains(it.getFullIdentifier())
|
||||||
}.map { it.getFullIdentifier() }.toMutableList() as ArrayList
|
}.map { it.name }.toMutableList() as ArrayList
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user