fix: issue in which non-bot users are shown as bots
Signed-off-by: Infi <infi@infi.sh>
This commit is contained in:
parent
ebd42b723f
commit
3a0f221356
|
|
@ -90,30 +90,33 @@ fun UserButtons(
|
||||||
) {
|
) {
|
||||||
Text(stringResource(R.string.user_info_sheet_add_friend))
|
Text(stringResource(R.string.user_info_sheet_add_friend))
|
||||||
}
|
}
|
||||||
}
|
} else {
|
||||||
|
Row(
|
||||||
Row(
|
horizontalArrangement = Arrangement.spacedBy(
|
||||||
horizontalArrangement = Arrangement.spacedBy(8.dp, alignment = Alignment.Start),
|
8.dp,
|
||||||
verticalAlignment = Alignment.CenterVertically,
|
alignment = Alignment.Start
|
||||||
modifier = Modifier
|
),
|
||||||
.animateContentSize()
|
verticalAlignment = Alignment.CenterVertically,
|
||||||
.clip(MaterialTheme.shapes.small)
|
modifier = Modifier
|
||||||
.clickable { botEasterEgg = true }
|
.animateContentSize()
|
||||||
.padding(8.dp)
|
.clip(MaterialTheme.shapes.small)
|
||||||
.weight(1f)
|
.clickable { botEasterEgg = true }
|
||||||
) {
|
.padding(8.dp)
|
||||||
Icon(
|
.weight(1f)
|
||||||
painter = painterResource(R.drawable.ic_robot_24dp),
|
) {
|
||||||
contentDescription = null
|
Icon(
|
||||||
)
|
painter = painterResource(R.drawable.ic_robot_24dp),
|
||||||
Text(
|
contentDescription = null
|
||||||
if (botEasterEgg) {
|
)
|
||||||
stringResource(R.string.user_info_sheet_user_is_bot_easter_egg)
|
Text(
|
||||||
} else {
|
if (botEasterEgg) {
|
||||||
stringResource(R.string.user_info_sheet_user_is_bot)
|
stringResource(R.string.user_info_sheet_user_is_bot_easter_egg)
|
||||||
},
|
} else {
|
||||||
style = MaterialTheme.typography.bodyMedium
|
stringResource(R.string.user_info_sheet_user_is_bot)
|
||||||
)
|
},
|
||||||
|
style = MaterialTheme.typography.bodyMedium
|
||||||
|
)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue