Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 83c8b557 authored by Lucas Silva's avatar Lucas Silva Committed by Android (Google) Code Review
Browse files

Merge "Disable fade-out animation on grid items" into main

parents 337f41ee 967f73e3
Loading
Loading
Loading
Loading
+11 −6
Original line number Diff line number Diff line
@@ -931,7 +931,9 @@ private fun BoxScope.CommunalHubLazyGrid(
                        Modifier.requiredSize(dpSize)
                            .thenIf(!isItemDragging) {
                                Modifier.animateItem(
                                    placementSpec = spring(stiffness = Spring.StiffnessMediumLow)
                                    placementSpec = spring(stiffness = Spring.StiffnessMediumLow),
                                    // See b/376495198 - not supported with AndroidView
                                    fadeOutSpec = null,
                                )
                            }
                            .thenIf(isItemDragging) { Modifier.zIndex(1f) },
@@ -980,9 +982,12 @@ private fun BoxScope.CommunalHubLazyGrid(
                    size = size,
                    selected = false,
                    modifier =
                        Modifier.requiredSize(dpSize).animateItem().thenIf(
                            communalResponsiveGrid()
                        ) {
                        Modifier.requiredSize(dpSize)
                            .animateItem(
                                // See b/376495198 - not supported with AndroidView
                                fadeOutSpec = null
                            )
                            .thenIf(communalResponsiveGrid()) {
                                Modifier.graphicsLayer { alpha = itemAlpha?.value ?: 1f }
                            },
                    index = index,