diff --git a/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/feeds/FeedLoaded.kt b/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/feeds/FeedLoaded.kt index 44fc509eb..ddc312d30 100644 --- a/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/feeds/FeedLoaded.kt +++ b/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/feeds/FeedLoaded.kt @@ -56,7 +56,7 @@ fun FeedLoaded( state = listState, ) { itemsIndexed(items.list, key = { _, item -> item.idHex }) { _, item -> - Row(Modifier.fillMaxWidth().animateItemPlacement()) { + Row(Modifier.fillMaxWidth().animateItem()) { NoteCompose( item, modifier = Modifier.fillMaxWidth(), diff --git a/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/screen/loggedIn/discover/DiscoverScreen.kt b/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/screen/loggedIn/discover/DiscoverScreen.kt index d37443732..9ff8f6c37 100644 --- a/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/screen/loggedIn/discover/DiscoverScreen.kt +++ b/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/screen/loggedIn/discover/DiscoverScreen.kt @@ -377,9 +377,7 @@ private fun DiscoverFeedLoaded( state = listState, ) { itemsIndexed(items.list, key = { _, item -> item.idHex }) { _, item -> - val defaultModifier = remember { Modifier.fillMaxWidth().animateItemPlacement() } - - Row(defaultModifier) { + Row(Modifier.fillMaxWidth().animateItem()) { ChannelCardCompose( baseNote = item, routeForLastRead = routeForLastRead, @@ -415,9 +413,7 @@ private fun DiscoverFeedColumnsLoaded( state = listState, ) { itemsIndexed(items.list, key = { _, item -> item.idHex }) { _, item -> - val defaultModifier = remember { Modifier.fillMaxWidth().animateItemPlacement() } - - Row(defaultModifier) { + Row(Modifier.fillMaxWidth().animateItem()) { ChannelCardCompose( baseNote = item, routeForLastRead = routeForLastRead, diff --git a/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/screen/loggedIn/drafts/DraftListScreen.kt b/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/screen/loggedIn/drafts/DraftListScreen.kt index e2fb1f139..b41a3406b 100644 --- a/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/screen/loggedIn/drafts/DraftListScreen.kt +++ b/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/screen/loggedIn/drafts/DraftListScreen.kt @@ -199,16 +199,9 @@ private fun DraftFeedLoaded( } } itemsIndexed(items.list, key = { _, item -> item.idHex }) { _, item -> - Row( - Modifier - .fillMaxWidth() - .animateItemPlacement(), - ) { + Row(Modifier.fillMaxWidth().animateItem()) { SwipeToDeleteContainer( - modifier = - Modifier - .fillMaxWidth() - .animateContentSize(), + modifier = Modifier.fillMaxWidth().animateContentSize(), onStartToEnd = { accountViewModel.delete(item) }, ) { NoteCompose( diff --git a/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/screen/loggedIn/notifications/CardFeedView.kt b/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/screen/loggedIn/notifications/CardFeedView.kt index 7a524a761..333c244ec 100644 --- a/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/screen/loggedIn/notifications/CardFeedView.kt +++ b/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/screen/loggedIn/notifications/CardFeedView.kt @@ -176,7 +176,7 @@ private fun FeedLoaded( key = { _, item -> item.id() }, contentType = { _, item -> item.javaClass.simpleName }, ) { _, item -> - Row(Modifier.fillMaxWidth().animateItemPlacement()) { + Row(Modifier.fillMaxWidth().animateItem()) { logTime( debugMessage = { "CardFeedView $item" }, ) {