Skip to content

Commit

Permalink
achievements: Fix animation of category items
Browse files Browse the repository at this point in the history
  • Loading branch information
Omico committed Jun 12, 2024
1 parent 37acc96 commit 4a47ac4
Showing 1 changed file with 13 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -99,16 +99,19 @@ private fun LazyListScope.achievementsCategoryItem(
onCategoryItemClick: () -> Unit,
onGroupItemClick: (WwAchievementGroup) -> Unit,
) {
item {
AchievementsListItem(
text = rememberWwText(
multiText = state.multiText,
name = category.name,
),
modifier = Modifier.animateItemPlacement(),
onClick = onCategoryItemClick,
)
}
item(
key = category.id,
content = {
AchievementsListItem(
text = rememberWwText(
multiText = state.multiText,
name = category.name,
),
modifier = Modifier.animateItemPlacement(),
onClick = onCategoryItemClick,
)
},
)
if (isExpanded) {
items(
items = state.achievementGroups.filter { it.category == category.id },
Expand Down

0 comments on commit 4a47ac4

Please sign in to comment.