Open Veeksi opened 2 years ago
Try this in fragment:
in onCreate method
epoxyController.onRestoreInstanceState(savedInstanceState)
onSaveInstanceState
epoxyController.onSaveInstanceState(outState)
Not a very good solution, it even makes whole list position reset to top.
Try this in fragment:
in onCreate method
epoxyController.onRestoreInstanceState(savedInstanceState)
onSaveInstanceState
epoxyController.onSaveInstanceState(outState)
When navigating from fragment that contains nested nested recyclerview with carousel to other fragment, the carousels scrolling position is not restored properly if you navigate back to first fragment instantly. However, if you wait some time in second fragment and then navigate back, the carousels position is restored properly.
I am using default CarouselModel and I have overridden carousels card model with
shouldSaveViewState
method