https://kotlinlang.org logo
k

Kaustubh Patange

06/15/2021, 5:23 PM
SaveableStateHolder does not restore 
rememberSaveable
 values after process death when it is wrapped with a 
CrossFade
 animation - https://issuetracker.google.com/issues/191059138 Can anyone verify this?
t

tad

06/15/2021, 5:26 PM
Is this just with LazyColumn or does it happen for other state?
k

Kaustubh Patange

06/15/2021, 5:30 PM
Not sure but
LazyColumn
internally uses
rememberSaveable
for
rememberLazyListState
. So it must happen for others as well.
t

tad

06/15/2021, 5:32 PM
It also has issues with restoring scroll state depending on how the items are populated, so I would try to make a minimal example using SaveableStateHolder directly
k

Kaustubh Patange

06/15/2021, 5:34 PM
The example I attached in the sample project is statically populating
LazyColumn
through a defined list of items. There are only ~20 items & are single line text.
a

Andrey Kulikov

06/15/2021, 5:38 PM
replied in the bug
k

Kaustubh Patange

06/15/2021, 5:52 PM
replied