Since the FormActivity is creating a FragmentManager whith the initForm(FormController) method
and the getModel() and getFormController() methods are calling this fragmentManager, the initForm method can't contain calls to those two methods, the FormController parameter is the object to use if any access to the model is needed.
I didn't look further to see if there is a good way to change this behavior yet, this pull request only provides a patch to avoid crash on ComplexForm.
Since the
FormActivity
is creating aFragmentManager
whith the initForm(FormController) method and thegetModel()
andgetFormController()
methods are calling this fragmentManager, theinitForm
method can't contain calls to those two methods, theFormController
parameter is the object to use if any access to the model is needed.I didn't look further to see if there is a good way to change this behavior yet, this pull request only provides a patch to avoid crash on ComplexForm.