You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As described in the title, if the user selects some items and the activity gets recreated (e.g., due screen rotation), the item selection does not persist. This is easily reproducible with the sample app in the repository, you just need to select some items and rotate your device - the selection will be gone.
The original gist uses rememberSaveable to avoid this issue.
The text was updated successfully, but these errors were encountered:
I expect replacing the return remember(lazyGridState) with rememberSaveable in DragSelectState#rememberDragSelectState would fix the issue. Unfortunately, the DragSelectState class contains types that are not storeable inside the Bundle, so a custom Saver has to be implemented and passed to rememberSaveable.
As described in the title, if the user selects some items and the activity gets recreated (e.g., due screen rotation), the item selection does not persist. This is easily reproducible with the sample app in the repository, you just need to select some items and rotate your device - the selection will be gone.
The original gist uses
rememberSaveable
to avoid this issue.The text was updated successfully, but these errors were encountered: