0

Is there any way to save supportFragmentManager state?

I have tried with ViewModel. But it didn't work. After screen rotation when i check 'viewModel.mySupportFragmentManager.isDestroyed', it says true. That means the older supportFragmentManager is destroyed and new one is reassigned. But the new supportFragmentManager object is not working as before the screen rotation. Like hide/show my fragments.

Any Suggestion Please..

0 Answers0