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 bug with date and date time widgets where you cannot reenter without moving away #223

Merged
merged 3 commits into from
Feb 9, 2021

Conversation

varunvjha
Copy link
Contributor

Fixes: #208

@jingtang10
Copy link
Collaborator

Copy link
Collaborator

@jingtang10 jingtang10 left a comment

Choose a reason for hiding this comment

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

Thanks! Just a couple of small things!

@@ -127,6 +128,7 @@ object QuestionnaireItemDateTimePickerViewHolderFactory : QuestionnaireItemViewH
TimePickerFragment.TAG
)
}
timeInputLayout.clearFocus()
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think this should be one line higher i.e. within the curly brackets?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, yes I realized the mistake. Changing it.

@@ -102,6 +102,7 @@ object QuestionnaireItemDatePickerViewHolderFactory : QuestionnaireItemViewHolde
context.supportFragmentManager,
DatePickerFragment.TAG
)
textInputLayout.clearFocus()
Copy link
Collaborator

Choose a reason for hiding this comment

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

please add the following comment (or something similar) and add the same to the other two placess

Suggested change
textInputLayout.clearFocus()
// Clear focus so that the user can refocus to open the dialog
textInputLayout.clearFocus()

Copy link
Collaborator

@jingtang10 jingtang10 left a comment

Choose a reason for hiding this comment

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

👍

Thanks Varun!

@jingtang10
Copy link
Collaborator

Please feel free to merge once the tests pass.

@jingtang10 jingtang10 added this to In progress in Data capture library via automation Feb 8, 2021
@varunvjha
Copy link
Contributor Author

@jingtang10 1 check is failing and I am not able to interpret the reason for it's failure. Can you check?

@varunvjha varunvjha closed this Feb 8, 2021
Data capture library automation moved this from In progress to Done Feb 8, 2021
@varunvjha varunvjha reopened this Feb 8, 2021
Data capture library automation moved this from Done to In progress Feb 8, 2021
@jingtang10
Copy link
Collaborator

tests passing now -- please feel free to merge your first PR! 🎉

@varunvjha
Copy link
Contributor Author

Only those with write access to this repo can merge PRs. There doesn't seem to be an option for me to merge the PR.

@jingtang10 jingtang10 merged commit cfa2ea4 into google:master Feb 9, 2021
Data capture library automation moved this from In progress to Done Feb 9, 2021
@jingtang10
Copy link
Collaborator

jingtang10 commented Feb 9, 2021

Merged it for you Varun -- and thanks again for your contribution. If you're looking to contribute regularly I will add you as a collaborator thanks!

@varunvjha
Copy link
Contributor Author

Merged it for you Varun -- and thanks again for your contribution. If you're looking to contribute regularly I will add you as a collaborator thanks!

Sure, I'd love that.

@Tarun-Bhardwaj Tarun-Bhardwaj added the type:bug Something isn't working label Sep 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:bug Something isn't working
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Fix bug with date and date time widgets where you cannot reenter without moving away
3 participants