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

Commit 9383a635 authored by Tianfan Zhang's avatar Tianfan Zhang
Browse files

Add index check before assigning new value to childHeights.

Bug: 423397858
Test: Cannot reproduce
Flag: com.android.systemui.enable_underlay
Change-Id: I8e35df9ed9e11f0bc29d3d6b6f1047d411dc510b
parent cce71e41
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -306,7 +306,11 @@ fun ActionList(
            Chip(
                action = action,
                modifier =
                    Modifier.onSizeChanged { childHeights[index] = it.height }
                    Modifier.onSizeChanged {
                            if (index < childHeights.size) {
                                childHeights[index] = it.height
                            }
                        }
                        .graphicsLayer {
                            translationY = (1f - translation) * appxColumnY
                            scaleX = scale