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 enabled but grayed out rows #2957

Merged
merged 1 commit into from
Mar 25, 2019

Conversation

grzesiek2010
Copy link
Member

@grzesiek2010 grzesiek2010 commented Mar 22, 2019

Closes #2956

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

I tested the list of sent forms.

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

The issue takes place because rows in ListView are reused that means if we have a few disabled rows (with grayed out elements) the same element might be reused for another element which is enabled. That's why we need to set alpha every time. The list of sent forms is the one that might be really big I guess in contrast to the list of blank/filled forms, so it could work slowly. This solution fixes the problem but in the feature, we should use RecyclerView instead (I'll file an issue).

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?

Implemented changes are only related to the list of sent forms so testing that list would be enough. It's not risky.

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

No.

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

@mmarciniak90
Copy link
Contributor

Tested with success

Verified on Android: 4.2, 4.4, 5.1, 6.0, 7.0, 8.1

Verified cases:

  • form automatically deleted
  • form manually deleted
  • form available

@opendatakit-bot unlabel "needs testing"
@opendatakit-bot label "behavior verified"

@grzesiek2010 grzesiek2010 added this to the v1.21 milestone Mar 25, 2019
@grzesiek2010 grzesiek2010 merged commit 27ee2af into getodk:master Mar 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants