mirror of
https://github.com/SimpleMobileTools/Simple-Contacts.git
synced 2025-01-05 20:37:10 +01:00
show only the proper contact sources at the View screen
This commit is contained in:
parent
d167e15681
commit
0160f48711
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user