It certainly looks like there is a "leftover" after the DialogFactory
Fragment
in FragmentManager
, but the Fragment
itself has it's state already cleared. So when the FragmentManager
tries to save the state, it fails.
Try to explicitly remove the DialogFactory
from FragmentManager
via the FragmentTransaction.remove(Fragment fragment)
method. If it didn't help try to call FragmentManager.executePendingTransaction()
before saving the state (and after commiting the remove transaction).