Skip to content

Commit a87fb2e

Browse files
committed
fix #764, fetch nicknames on the main screen too to make it searchable
1 parent abcbc35 commit a87fb2e

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

app/src/main/kotlin/com/simplemobiletools/contacts/pro/helpers/ContactsHelper.kt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -258,6 +258,13 @@ class ContactsHelper(val context: Context) {
258258
contacts[key]?.notes = notes.valueAt(i)
259259
}
260260

261+
val nicknames = getNicknames()
262+
size = nicknames.size()
263+
for (i in 0 until size) {
264+
val key = nicknames.keyAt(i)
265+
contacts[key]?.nickname = nicknames.valueAt(i)
266+
}
267+
261268
val websites = getWebsites()
262269
size = websites.size()
263270
for (i in 0 until size) {

0 commit comments

Comments
 (0)