Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Next button not working on new version 2.1.13 #612

Closed
SebaMutuku opened this issue Jan 3, 2022 · 1 comment · Fixed by #613
Closed

Next button not working on new version 2.1.13 #612

SebaMutuku opened this issue Jan 3, 2022 · 1 comment · Fixed by #613
Assignees

Comments

@SebaMutuku
Copy link
Contributor

Expected. On click next button a next fragment should be launched and render with a JSON Form,
however with version 2.1.13 of native form, I am getting below exception.
"2022-01-03 15:06:50.159 5022-5192/org.smartregister.anc E/JsonFormFragment: --> next
java.lang.RuntimeException: Can't create handler inside thread Thread[pool-42-thread-1,5,main] that has not called Looper.prepare()
at android.os.Handler.(Handler.java:227)
at android.os.Handler.(Handler.java:153)
at com.vijay.jsonwizard.fragments.JsonFormFragment.(JsonFormFragment.java:89)
at com.vijay.jsonwizard.fragments.JsonWizardFormFragment.(JsonWizardFormFragment.java:35)
at org.smartregister.anc.library.fragment.ContactWizardJsonFormFragment.(ContactWizardJsonFormFragment.java:46)
at org.smartregister.anc.library.fragment.ContactWizardJsonFormFragment.getFormFragment(ContactWizardJsonFormFragment.java:55)
at org.smartregister.anc.library.presenter.ContactWizardJsonFormFragmentPresenter.moveToNextWizardStep(ContactWizardJsonFormFragmentPresenter.java:40)
at com.vijay.jsonwizard.presenters.JsonWizardFormFragmentPresenter.onNextClick(JsonWizardFormFragmentPresenter.java:27)
at com.vijay.jsonwizard.fragments.JsonFormFragment.next(JsonFormFragment.java:476)
at org.smartregister.anc.library.fragment.ContactWizardJsonFormFragment$BottomNavigationListener$2.run(ContactWizardJsonFormFragment.java:359)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
at java.lang.Thread.run(Thread.java:923)
"

client-app :WHO-ANC-CLIENT
test form ;anc_test.json
Tab : Tests tab under start contact.

@dubdabasoduba
Copy link
Member

The form wizard pieces of Native Forms seems broken.

How to test

  • Run the Native forms sample app.
  • Load any form with a wizard, fill in the required fields then click on next.
  • The loading popup will show up but nothing else happens after that.

Acceptance criteria

  • Run the Native forms sample app.
  • Load any form with a wizard, fill in the required fields then click on next.
  • The loading popup should show up then move to the next form step.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants