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

Commit 38818825 authored by Olivier St-Onge's avatar Olivier St-Onge
Browse files

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
parent 043d2389
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment