-
Notifications
You must be signed in to change notification settings - Fork 294
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
Async process for getQuestionnairePages #2639
Comments
UI refreshing takes time after the answer is updated, and this is an issue, right? |
@santosh-pingle Yeah! :D |
can you share the questionnaire or ui profiling result? really curious why it takes 2 seconds |
@jingtang10 I've shared the 2 questionnaires to your email |
@FikriMilano Is the 2 seconds constant or it depends on the action being undertaken? |
Depends how many enable when expression that the questionnaire has. In this case where it's taking 2 seconds, it's processing around ~25 enable when expressions. |
Is your feature request related to a problem? Please describe.
getQuestionnairePages
delays the UI update for ~2 seconds after changing an answer, when we have a lot of skip logic (that applies to pages).android-fhir/datacapture/src/main/java/com/google/android/fhir/datacapture/QuestionnaireViewModel.kt
Lines 706 to 717 in 1da6eb7
Describe the solution you'd like
Describe alternatives you've considered
Open to it
Additional context
Video of the progress bar:
Screen_recording_20240807_093625.webm
Screen_recording_20240802_145126.1.webm
Would you like to work on the issue?
Yes
The text was updated successfully, but these errors were encountered: