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

Skip to content
Commit e7e595de authored by Lucas Silva's avatar Lucas Silva
Browse files

Address some issues with ResizeableItemFrame

1. Use rememberUpdatedState to remember the resize callback, and ensure
   we always use the latest one in the event of recomposition.
2. Make sure we clear anchors when the layout info becomes unknown, such
   as when the item is scrolled out-of-view.
3. Instead of using the index, use a key to locate items. The index may
   change if the item is moved as part of resizing, which will cause a
   recomposition. However, the key should remain stable.

Bug: 368056517
Test: atest ResizeableItemFrameViewModelTest
Flag: EXEMPT component is not yet used anywhere
Change-Id: I17d4fc1180866d18bfb61f8de739e794e80da886
parent 4c3a7c43
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