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

Fixed the RangePicker widget #5371

Merged
merged 8 commits into from
Dec 19, 2022
Merged

Conversation

grzesiek2010
Copy link
Member

@grzesiek2010 grzesiek2010 commented Dec 7, 2022

Closes #5284

What has been done to verify that this works as intended?

I've added automated tests and tested the fix manually.

Why is this the best possible solution? Were any other approaches considered?

As we agreed in the issue to avoid the bug in NumberPicker we should display all elements in the ascending order. It is the easiest solution.

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?

Please test range widgets (integer and decimal) with picker appearance. There is a lot of refactoring that might spoil something. Other widgets are safe.

Do we need any specific form for testing your changes? If so, please attach one.

This for example: rangePickerWidget.xlsx
but be creative.

Does this change require updates to documentation? If so, please file an issue here and include the link below.

No.

Before submitting this PR, please make sure you have:

  • run ./gradlew checkAll and confirmed all checks still pass OR confirm CircleCI build passes and run ./gradlew connectedDebugAndroidTest locally.
  • verified that any code or assets from external sources are properly credited in comments and/or in the about file.
  • verified that any new UI elements use theme colors. UI Components Style guidelines

@grzesiek2010 grzesiek2010 changed the title Collect 5284 Fixed the RangePicker widget Dec 7, 2022
@grzesiek2010 grzesiek2010 marked this pull request as ready for review December 7, 2022 22:40
@dbemke
Copy link

dbemke commented Dec 19, 2022

Tested with Success!

Verified on Androids: 10

Verified cases:

  • issue Range with picker appearance adds extra digit #5284 is no longer reproducing
  • range picker with ascending/descending values set in a form (with different steps)
  • range picker with integers, negatives values, decimals
  • RTL
  • rotating, minimizing, locking the screen
  • regression checks on range widgets

@srujner
Copy link

srujner commented Dec 19, 2022

Tested with Success!

Verified on Androids: 5.1 and 13

@seadowg seadowg merged commit 47b1982 into getodk:master Dec 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Range with picker appearance adds extra digit
4 participants