-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Fix multi select widget with no-buttons appearance #5824
Conversation
collect_app/src/test/java/org/odk/collect/android/widgets/items/SelectMultiWidgetTest.java
Show resolved
Hide resolved
Should the answer be saved after I uncheck and check again? XRecorder_16112023_114109.mp4 |
Good question? What's the behaviour like in older versions? |
Select with no buttons didn't work in previous version (can't compare) but I changed the form so that there are buttons and compared it with this - the hidden answer is present until saving the form, after saving the form if the question was hidden the answer isn't saved... so it's the same I guess |
I think if the behaviour is consistent we're ok here. As long as the question is properly irrelevant, it shouldn't matter that the answer is "remembered". I guess in some cases that would actually be really useful! |
Tested with Success! Verified on Android 10 Verified Cases:
|
Tested with Success! Verified on Android 13 |
Fix multi select widget with no-buttons appearance
Fix multi select widget with no-buttons appearance
Closes #5821
Why is this the best possible solution? Were any other approaches considered?
All widget implementations need to call
widgetValueChanged()
whenever their state changes for things like field list calculations to work and the call was simply missing in this case.How does this change affect users? Describe intentional changes to behavior and behavior that could have accidentally been affected by code changes. In other words, what are the regression risks?
Shouldn't change anything other than fixing the issue! It'd be good to have a quick poke around with other appearance combos for widgets in general to see if we can find any other problematic ones.
Before submitting this PR, please make sure you have:
./gradlew checkAll
and confirmed all checks still pass OR confirm CircleCI build passes and run./gradlew connectedDebugAndroidTest
locally.