mirror of
https://github.com/signalapp/Signal-Android.git
synced 2025-12-23 20:48:43 +00:00
Hide irrelevant rows in self about sheet.
This commit is contained in:
committed by
Greyson Parrelli
parent
8f1722c718
commit
d36b2a23f5
@@ -218,7 +218,7 @@ private fun Content(
|
|||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (model.verified) {
|
if (!model.isSelf && model.verified) {
|
||||||
AboutRow(
|
AboutRow(
|
||||||
startIcon = painterResource(id = R.drawable.check),
|
startIcon = painterResource(id = R.drawable.check),
|
||||||
text = stringResource(id = R.string.AboutSheet__verified),
|
text = stringResource(id = R.string.AboutSheet__verified),
|
||||||
@@ -227,6 +227,7 @@ private fun Content(
|
|||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!model.isSelf) {
|
||||||
if (model.profileSharing || model.systemContact) {
|
if (model.profileSharing || model.systemContact) {
|
||||||
AboutRow(
|
AboutRow(
|
||||||
startIcon = painterResource(id = R.drawable.symbol_connections_24),
|
startIcon = painterResource(id = R.drawable.symbol_connections_24),
|
||||||
@@ -243,8 +244,9 @@ private fun Content(
|
|||||||
onClick = onClickSignalConnections
|
onClick = onClickSignalConnections
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (model.systemContact) {
|
if (!model.isSelf && model.systemContact) {
|
||||||
AboutRow(
|
AboutRow(
|
||||||
startIcon = painterResource(id = R.drawable.symbol_person_circle_24),
|
startIcon = painterResource(id = R.drawable.symbol_person_circle_24),
|
||||||
text = stringResource(id = R.string.AboutSheet__s_is_in_your_system_contacts, model.shortName),
|
text = stringResource(id = R.string.AboutSheet__s_is_in_your_system_contacts, model.shortName),
|
||||||
@@ -260,6 +262,7 @@ private fun Content(
|
|||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!model.isSelf) {
|
||||||
val groupsInCommonText = if (model.groupsInCommon > 0) {
|
val groupsInCommonText = if (model.groupsInCommon > 0) {
|
||||||
pluralStringResource(id = R.plurals.AboutSheet__d_groups_in, model.groupsInCommon, model.groupsInCommon)
|
pluralStringResource(id = R.plurals.AboutSheet__d_groups_in, model.groupsInCommon, model.groupsInCommon)
|
||||||
} else {
|
} else {
|
||||||
@@ -277,6 +280,7 @@ private fun Content(
|
|||||||
text = groupsInCommonText,
|
text = groupsInCommonText,
|
||||||
modifier = Modifier.fillMaxWidth()
|
modifier = Modifier.fillMaxWidth()
|
||||||
)
|
)
|
||||||
|
}
|
||||||
|
|
||||||
if (model.note.isNotBlank()) {
|
if (model.note.isNotBlank()) {
|
||||||
AboutRow(
|
AboutRow(
|
||||||
|
|||||||
Reference in New Issue
Block a user