Skip to content

Commit 0160f48

Browse files
committed
show only the proper contact sources at the View screen
1 parent d167e15 commit 0160f48

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

app/src/main/kotlin/com/simplemobiletools/contacts/pro/activities/ViewContactActivity.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -572,7 +572,8 @@ class ViewContactActivity : ContactActivity() {
572572
ContactsHelper(this).getDuplicatesOfContact(contact!!, false) { contacts ->
573573
ensureBackgroundThread {
574574
duplicateContacts.clear()
575-
contacts.forEach {
575+
val displayContactSources = getVisibleContactSources()
576+
contacts.filter { displayContactSources.contains(it.source) }.forEach {
576577
val duplicate = ContactsHelper(this).getContactWithId(it.id, it.isPrivate())
577578
if (duplicate != null) {
578579
duplicateContacts.add(duplicate)

0 commit comments

Comments
 (0)