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

Fix for radio button getting unchecked after scroll (view recycled) in recycler view #1691

Merged
merged 1 commit into from
Nov 1, 2022

Conversation

aditya-07
Copy link
Collaborator

IMPORTANT: All PRs must be linked to an issue (except for extremely trivial and straightforward changes).

Fixes #1683

Description

  1. Confirmed that the selected answer is not lost / overriden.
  2. Setting checked state on RadioButton in RadioGroup is sometimes causing the RadioButton to not show appropriate state.
  3. Fixed by setting state using RadioGroup's check api instead.

Alternative(s) considered
Have you considered any alternatives? And if so, why have you chosen the approach in this PR?

Type
Choose one: Bug fix

Screenshots (if applicable)
Before the fix:

boolean_answer.webm

After the fix:

boolean_answer_fixed.webm

Checklist

  • I have read and acknowledged the Code of conduct.
  • I have read the Contributing page.
  • I have signed the Google Individual CLA, or I am covered by my company's Corporate CLA.
  • I have discussed my proposed solution with code owners in the linked issue(s) and we have agreed upon the general approach.
  • I have run ./gradlew spotlessApply and ./gradlew spotlessCheck to check my code follows the style guide of this project.
  • I have run ./gradlew check and ./gradlew connectedCheck to test my changes locally.
  • I have built and run the demo app(s) to verify my change fixes the issue and/or does not break the demo app(s).

Copy link
Collaborator

@santosh-pingle santosh-pingle left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if possible can you please write unit/android test (or you can create separate issue and when time permits it can be fixed), otherwise it looks good to me.

Copy link
Contributor

@omarismail94 omarismail94 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@aditya-07 I am working on writing a test to load questionnaires from JSON similar to how the catalog app works. Can you create an Issue to add UI tests for the different views that we have?

@aditya-07 aditya-07 merged commit 147e61c into google:master Nov 1, 2022
ktarasenko pushed a commit to ktarasenko/android-fhir that referenced this pull request Nov 7, 2022
ktarasenko pushed a commit to ktarasenko/android-fhir that referenced this pull request Nov 14, 2022
ktarasenko added a commit that referenced this pull request Nov 23, 2022
* Add Implementation guide management library module

* Crashed Fixed in Quantity Input Widget (#1673)

* Crashed Fixed in Quantity Input Widget

* reverted unwanted changes

* Spotless check applied

* remove clear answer from factory

Co-authored-by: omarismail <[email protected]>

* Fix review comments

* Updated code to set the radio button in a radio group using radio groups check api instead of radio button apis (#1691)

* Bump up SDC version to beta06 (#1694)

* Follow up code health fixes of PR 1442 (#1631)

* WIP PR feedback

* spotless ran

* added test cases for validation util

* used fhirpathengine instance from fhir path expression evaluator

* updated test cases name and convention

* updated test cases name and their convention to look consistent

Co-authored-by: Jing Tang <[email protected]>

* Disable leniency in DateFormat lib when converting date (#1687)

* Fix Issue #1638: disable lenient check

* add espresso test

* add more tests per date field changed

* Regenerate docs after SDC version bump (#1696)

* Documentation Update : Changed the folder structure and did some other minor add-ons (#1662)

* Create CODE_OF_CONDUCT.md

* Delete CODE_OF_CONDUCT.md

* Create Contributing.md

* Delete contributing.md

* Update README.md

* Update README.md

Co-authored-by: Omar Ismail <[email protected]>

* Catlog app- Info grey box added in Calculated expression screen Behavior (#1679)

* Scroll down the recyclerview to show the Add answer button. (#1666)

* Scroll down the recyclerview to show the Add answer button.

* Address review comments.

* Address review comments.

* Add flaky flag to retry

* update gcloud components as well

* remove version flag

Co-authored-by: Santosh Pingle <[email protected]>
Co-authored-by: Omar Ismail <[email protected]>
Co-authored-by: omarismail <[email protected]>

* Enable "Next button" on paginated view when nested answer is chosen (#1684)

Fix Issue  #1677

* Add trailing line break.

* Update buildSrc/src/main/kotlin/Releases.kt

Co-authored-by: Jing Tang <[email protected]>

Co-authored-by: PallaviGanorkar <[email protected]>
Co-authored-by: omarismail <[email protected]>
Co-authored-by: aditya-07 <[email protected]>
Co-authored-by: Omar Ismail <[email protected]>
Co-authored-by: aurangzaibumer <[email protected]>
Co-authored-by: Jing Tang <[email protected]>
Co-authored-by: Vanshaj Poonia <[email protected]>
Co-authored-by: santosh-pingle <[email protected]>
Co-authored-by: Santosh Pingle <[email protected]>
@aditya-07 aditya-07 deleted the ak/boolean_choice_1683 branch April 19, 2023 08:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

click on option of one boolean view select/unselect the option of another boolean view.
3 participants