freddiewang
10/14/2022, 1:44 PMPath
and some control points, I’d like to keep the same state after going back to the screen
but don’t know how to keep the state in Compose UIczuckie
10/14/2022, 2:29 PMupdate
lambda that you can provide to the AndroidView
composable.
If that's not feasible, I imagine implementing onSaveInstanceState/onRestoreInstanceState may work?
What have you tried?freddiewang
10/14/2022, 3:38 PMfreddiewang
10/18/2022, 2:58 AMonSaveInstanceState
is invoked and onRestoreInstanceState
is never invoked in Compose UI. The workaround is to export the saved state to Compose. Still finding a better solution