summaryrefslogtreecommitdiff
path: root/libs/androidfw/ObbFile.cpp
diff options
context:
space:
mode:
author Lucas Silva <lusilva@google.com> 2024-10-04 11:18:37 -0400
committer Lucas Silva <lusilva@google.com> 2024-10-04 11:24:25 -0400
commite7e595de7f59ed273401e4e941fbb24e22be9a57 (patch)
treee5859178b4fa1c84dd4f61a75ff447fd1b56e70f /libs/androidfw/ObbFile.cpp
parent4c3a7c431c9eaee32e04c0b50ce7037be21f5909 (diff)
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
Diffstat (limited to 'libs/androidfw/ObbFile.cpp')
0 files changed, 0 insertions, 0 deletions