dkharrat / NexusDialog

Library that allows you to easily and quickly create forms in Android with little code
Apache License 2.0
183 stars 52 forks source link

fix: ComplexForm crashing when calling getModel() #35

Closed aveuiller closed 8 years ago

aveuiller commented 8 years ago

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.