Skip to content

Commit 8e8a5d3

Browse files
committed
ignore the photos only at comparing private contacts
1 parent 1ec064e commit 8e8a5d3

File tree

1 file changed

+2
-1
lines changed
  • app/src/main/kotlin/com/simplemobiletools/contacts/pro/models

1 file changed

+2
-1
lines changed

app/src/main/kotlin/com/simplemobiletools/contacts/pro/models/Contact.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,7 @@ data class Contact(
130130
}
131131

132132
fun getStringToCompare(): String {
133+
val photoToUse = if (isPrivate()) null else photo
133134
return copy(
134135
id = 0,
135136
prefix = "",
@@ -147,7 +148,7 @@ data class Contact(
147148
starred = 0,
148149
contactId = 0,
149150
thumbnailUri = "",
150-
photo = null,
151+
photo = photoToUse,
151152
notes = "",
152153
groups = ArrayList(),
153154
websites = ArrayList(),

0 commit comments

Comments
 (0)