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

Commit 300a3c77 authored by Tianfan Zhang's avatar Tianfan Zhang
Browse files

Update childHeights when action list size changes.

Bug: 423397858
Flag: com.android.systemui.enable_underlay
Test: hard to reproduce
Change-Id: I913685ae1af38a57a55878076c3738c7578713dd
parent 97370356
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -131,7 +131,7 @@ fun ActionList(
        verticalArrangement = Arrangement.spacedBy(columnSpacing, Alignment.Bottom),
        horizontalAlignment = horizontalAlignment,
    ) {
        val childHeights = remember { MutableList(actions.size) { 0 } }
        val childHeights = remember(actions) { MutableList(actions.size) { 0 } }
        actions.forEachIndexed { index, action ->
            val scale by
                animateFloatAsState(