Skip to content

Commit

Permalink
Replace animateItemPlacement by animateItem
Browse files Browse the repository at this point in the history
  • Loading branch information
serbelga committed Nov 24, 2024
1 parent ca875fd commit 0b996d7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -517,7 +517,7 @@ fun LazyListScope.taskItems(
onTaskItemClick = { onTaskItemClick(taskItem.id) },
onTaskItemLongClick = { onTaskItemLongClick(taskItem.id) },
onSwipeToDismiss = { onSwipeToDismiss(taskItem.id) },
modifier = Modifier.animateItemPlacement(),
modifier = Modifier.animateItem(),
swipeable = !selectionMode,
checkEnabled = selectionMode,
selected = selectedTasksIds.contains(taskItem.id)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ private fun LazyItemScope.TaskChecklistItem(
taskChecklistItem.state == TaskChecklistItemState.UNCHECKED
)
}
.animateItemPlacement()
.animateItem()
.padding(horizontal = 8.dp)
) {
TodometerCheckbox(
Expand Down

0 comments on commit 0b996d7

Please sign in to comment.