Avoid recreating the SnapshotStateList for edit mode at every changes
This helps reduce jank. As a result, two bugs were uncovered: - The resizing anchors would be updated with the wrong size values. Using the LazyGridState to calculate the bounds fixes this issue. - The DragAndDrop API would _sometimes_ stop the tile content from initially composing when a tile is resized rapidly. Applying the DragAndDrop modifier after the first frame fixes this Test: manually Test: EditTileListStateTest Test: ResizingStateTest Test: ResizingTest Test: DragAndDropTest Test: EditModeTest Flag: com.android.systemui.qs_ui_refactor_compose_fragment Bug: 405079536 Change-Id: I5931d3a087d965dac1abd18af089b581de5e34b0
Loading
Please register or sign in to comment