fix: 菜单 - 收藏
This commit is contained in:
parent
fad05912ae
commit
0e978bec0a
|
|
@ -1401,9 +1401,9 @@ fun PostCard(
|
||||||
if (onMenuFavoriteClick != null) {
|
if (onMenuFavoriteClick != null) {
|
||||||
DropdownMenuItem(onClick = { onMenuFavoriteClick(post) }) {
|
DropdownMenuItem(onClick = { onMenuFavoriteClick(post) }) {
|
||||||
if (isCollected(post)) {
|
if (isCollected(post)) {
|
||||||
Text(text = stringResource(id = R.string.title_collect))
|
|
||||||
} else {
|
|
||||||
Text(text = stringResource(id = R.string.title_collect_on))
|
Text(text = stringResource(id = R.string.title_collect_on))
|
||||||
|
} else {
|
||||||
|
Text(text = stringResource(id = R.string.title_collect))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue