We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c1231b8 commit 42b84eaCopy full SHA for 42b84ea
app/src/main/kotlin/com/simplemobiletools/contacts/pro/activities/ViewContactActivity.kt
@@ -291,7 +291,11 @@ class ViewContactActivity : ContactActivity() {
291
}
292
293
private fun setupNames() {
294
- val displayName = contact!!.getNameToDisplay()
+ var displayName = contact!!.getNameToDisplay()
295
+ if (contact!!.nickname.isNotEmpty()) {
296
+ displayName += " (${contact!!.nickname})"
297
+ }
298
+
299
contact_name.text = displayName
300
contact_name.copyOnLongClick(displayName)
301
contact_name.beVisibleIf(displayName.isNotEmpty() && !contact!!.isABusinessContact())
0 commit comments