Before the PR (what is the issue or what needed to be done)
Due to a race condition, surveyInstance was deleted before the user could submit data
The solution (Part1)
Make sure the surveyInstance is created in FormActivity the first time an answer is saved
Stop deleting empty datapoints as this can provoke data loss
convert some of the small classes to Kotlin
Some renames
Before the PR (what is the issue or what needed to be done)
Due to a race condition, surveyInstance was deleted before the user could submit data
The solution (Part1)
Make sure the surveyInstance is created in FormActivity the first time an answer is saved Stop deleting empty datapoints as this can provoke data loss convert some of the small classes to Kotlin Some renames
Screenshots (if appropriate)
NA
Reviewer Checklist