Skip to content

Commit 42b84ea

Browse files
committed
show the contacts nickname on View screen too
1 parent c1231b8 commit 42b84ea

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,11 @@ class ViewContactActivity : ContactActivity() {
291291
}
292292

293293
private fun setupNames() {
294-
val displayName = contact!!.getNameToDisplay()
294+
var displayName = contact!!.getNameToDisplay()
295+
if (contact!!.nickname.isNotEmpty()) {
296+
displayName += " (${contact!!.nickname})"
297+
}
298+
295299
contact_name.text = displayName
296300
contact_name.copyOnLongClick(displayName)
297301
contact_name.beVisibleIf(displayName.isNotEmpty() && !contact!!.isABusinessContact())

0 commit comments

Comments
 (0)