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

Commit 73281433 authored by Olivier St-Onge's avatar Olivier St-Onge Committed by Android (Google) Code Review
Browse files

Merge "Change the iterations value for the tile's marquee to force the...

Merge "Change the iterations value for the tile's marquee to force the animation to restart" into main
parents 8a2f5f72 79773cb2
Loading
Loading
Loading
Loading
+6 −8
Original line number Diff line number Diff line
@@ -290,6 +290,8 @@ private fun TileLabel(
) {
    var textSize by remember { mutableIntStateOf(0) }

    val iterations = if (isVisible()) TILE_MARQUEE_ITERATIONS else 0

    BasicText(
        text = text,
        color = color,
@@ -322,14 +324,10 @@ private fun TileLabel(
                        )
                    }
                }
                .thenIf(isVisible()) {
                    // Only apply the marquee when the label is visible, which is needed for the
                    // always composed QS
                    Modifier.basicMarquee(
                        iterations = TILE_MARQUEE_ITERATIONS,
                .basicMarquee(
                    iterations = iterations,
                    initialDelayMillis = TILE_INITIAL_DELAY_MILLIS,
                    )
                },
                ),
    )
}