mirror of
https://github.com/signalapp/Signal-Android.git
synced 2025-12-24 13:08:46 +00:00
Fix about sheet groups in common placeholder count.
This commit is contained in:
committed by
Greyson Parrelli
parent
15afaeabe3
commit
99f936ff97
@@ -215,25 +215,23 @@ private fun AboutSheetContent(
|
||||
}
|
||||
|
||||
val groupsInCommonText = if (recipient.hasGroupsInCommon()) {
|
||||
pluralStringResource(id = R.plurals.AboutSheet__d_groups_in, groupsInCommonCount)
|
||||
pluralStringResource(id = R.plurals.AboutSheet__d_groups_in, groupsInCommonCount, groupsInCommonCount)
|
||||
} else {
|
||||
stringResource(id = R.string.AboutSheet__you_have_no_groups_in_common)
|
||||
}
|
||||
|
||||
val groupsInCommonIcon = if (!recipient.isProfileSharing && groupsInCommonCount == 0) {
|
||||
painterResource(R.drawable.symbol_error_circle_24)
|
||||
} else {
|
||||
painterResource(R.drawable.symbol_group_24)
|
||||
}
|
||||
|
||||
AboutRow(
|
||||
startIcon = painterResource(R.drawable.symbol_group_24),
|
||||
startIcon = groupsInCommonIcon,
|
||||
text = groupsInCommonText,
|
||||
modifier = Modifier.fillMaxWidth()
|
||||
)
|
||||
|
||||
if (!recipient.isProfileSharing) {
|
||||
AboutRow(
|
||||
startIcon = painterResource(R.drawable.symbol_error_circle_24),
|
||||
text = pluralStringResource(id = R.plurals.AboutSheet__d_groups_in, groupsInCommonCount),
|
||||
modifier = Modifier.fillMaxWidth()
|
||||
)
|
||||
}
|
||||
|
||||
Spacer(modifier = Modifier.size(26.dp))
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user