show only the proper contact sources at the View screen
This commit is contained in:
parent
d167e15681
commit
0160f48711
1 changed files with 2 additions and 1 deletions
|
|
@ -572,7 +572,8 @@ class ViewContactActivity : ContactActivity() {
|
||||||
ContactsHelper(this).getDuplicatesOfContact(contact!!, false) { contacts ->
|
ContactsHelper(this).getDuplicatesOfContact(contact!!, false) { contacts ->
|
||||||
ensureBackgroundThread {
|
ensureBackgroundThread {
|
||||||
duplicateContacts.clear()
|
duplicateContacts.clear()
|
||||||
contacts.forEach {
|
val displayContactSources = getVisibleContactSources()
|
||||||
|
contacts.filter { displayContactSources.contains(it.source) }.forEach {
|
||||||
val duplicate = ContactsHelper(this).getContactWithId(it.id, it.isPrivate())
|
val duplicate = ContactsHelper(this).getContactWithId(it.id, it.isPrivate())
|
||||||
if (duplicate != null) {
|
if (duplicate != null) {
|
||||||
duplicateContacts.add(duplicate)
|
duplicateContacts.add(duplicate)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue