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

Keyboard appears and full submission name is not visible if submission name is not editable #2833

Merged
merged 2 commits into from
Feb 11, 2019

Conversation

grzesiek2010
Copy link
Member

@grzesiek2010 grzesiek2010 commented Jan 29, 2019

Closes #2819

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

I've tested rotating a device on the end of form screen and the form attached to the issue.

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

The first commit is just a simple fix, the second one contains a fix that enables multiple lines to display an entire text.

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?

This pr brings two changes:

  1. Fix the problem with appearing keyboard after rotating a device.
  2. Enabling multiple lines in form name EdiText.

It should be safe and I can't see any big risk here or other cases that we should test.

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

One form is attached to the issue, apart from that we can use any form.

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 2819 Keyboard appears and full submission name is not visible if submission name is not editable Jan 29, 2019
@yanokwa yanokwa added this to the v1.20 milestone Jan 31, 2019
@kkrawczyk123
Copy link
Contributor

Tested with success
Verified on Androids: 4.1, 4.2, 4.4, 5.1, 6.0, 7.0 and 8.1.
The results are compliant, the keyboard is not showing up after screen rotation. The whole name is displayed and text is wrapped. Enters used in the form are displayed, what is acceptable. Screenshot of current results attached:
screenshot_20190206-120342
screenshot_20190206-112633

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

@yanokwa
Copy link
Member

yanokwa commented Feb 11, 2019

@kkrawczyk123 What happens if there is a very very very long name with no newlines?

@kkrawczyk123
Copy link
Contributor

@yanokwa it is wrapped like:
screenshot_20190211-093055

@yanokwa yanokwa self-requested a review February 11, 2019 18:11
@yanokwa yanokwa merged commit d9e5e66 into getodk:master Feb 11, 2019
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.

Keyboard appears and full submission name is not visible if submission name is not editable
4 participants