Don't show profile name parentheses if we don't have one.
This commit is contained in:
parent
4c6e7991df
commit
939024faff
1 changed files with 3 additions and 3 deletions
|
@ -193,10 +193,10 @@ private fun Content(
|
|||
|
||||
AboutRow(
|
||||
startIcon = painterResource(R.drawable.symbol_person_24),
|
||||
text = if (!model.hasUserSetDisplayName) {
|
||||
model.displayName
|
||||
} else {
|
||||
text = if (model.hasUserSetDisplayName && model.displayName.isNotBlank() && model.profileName.isNotBlank()) {
|
||||
stringResource(id = R.string.AboutSheet__user_set_display_name_and_profile_name, model.displayName, model.profileName)
|
||||
} else {
|
||||
model.displayName
|
||||
},
|
||||
modifier = Modifier.fillMaxWidth()
|
||||
)
|
||||
|
|
Loading…
Add table
Reference in a new issue