mirror of
https://github.com/FossifyOrg/Contacts.git
synced 2026-02-02 03:32:19 -05:00
show only the proper contact sources at the View screen
This commit is contained in:
@@ -572,7 +572,8 @@ class ViewContactActivity : ContactActivity() {
|
||||
ContactsHelper(this).getDuplicatesOfContact(contact!!, false) { contacts ->
|
||||
ensureBackgroundThread {
|
||||
duplicateContacts.clear()
|
||||
contacts.forEach {
|
||||
val displayContactSources = getVisibleContactSources()
|
||||
contacts.filter { displayContactSources.contains(it.source) }.forEach {
|
||||
val duplicate = ContactsHelper(this).getContactWithId(it.id, it.isPrivate())
|
||||
if (duplicate != null) {
|
||||
duplicateContacts.add(duplicate)
|
||||
|
||||
Reference in New Issue
Block a user