Merge pull request #97 from Aga-C/fix-group-contact-source

Fixed contact source chooser while creating a group
This commit is contained in:
Naveen Singh
2024-10-25 17:50:42 -04:00
committed by GitHub

View File

@@ -32,8 +32,7 @@ class CreateNewGroupDialog(val activity: BaseSimpleActivity, val callback: (newG
val contactSources = ArrayList<ContactSource>()
ContactsHelper(activity).getContactSources {
it.filter { it.type.contains("google", true) }.mapTo(contactSources) { ContactSource(it.name, it.type, it.name) }
contactSources.add(activity.getPrivateContactSource())
it.mapTo(contactSources) { ContactSource(it.name, it.type, it.publicName) }
val items = ArrayList<RadioItem>()
contactSources.forEachIndexed { index, contactSource ->