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 hides itself when focusing to open-choice text box #2651

Closed
FikriMilano opened this issue Jul 29, 2024 · 2 comments · Fixed by #2652
Closed

Keyboard hides itself when focusing to open-choice text box #2651

FikriMilano opened this issue Jul 29, 2024 · 2 comments · Fixed by #2652
Assignees
Labels
effort:xsmall Extra small effort - 1 day P2 Medium priority issue

Comments

@FikriMilano
Copy link
Collaborator

Describe the bug
Keyboard hides itself when focusing to open-choice text box

Component
SDC library

To Reproduce
Steps to reproduce the behavior:

  1. Tap a dropdown of open-choice widget
  2. Dialog shows
  3. Tap Add another answer button
  4. Tap the text box
  5. Keyboard opened then hides itself

Expected behavior
Keyboard should not hide.

Screenshots

319517233-8d6dbbfb-fc38-4edb-a04c-7237a592f4ce.mp4

Smartphone (please complete the following information):

  • Device: Blu G60
  • Android version: 9
  • Build number: [e.g. Settings -> About phone -> Build number]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

Would you like to work on the issue?
Yes

@FikriMilano
Copy link
Collaborator Author

Not all device experience this, personally I could not replicate the bug, but my friend was able todo so @madrinekariuki

What solved the bug for us is by applying this change in OptionSelectDialogFragment:

it.setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_ADJUST_PAN)

Previously it was:

it.setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_ADJUST_RESIZE)

@FikriMilano
Copy link
Collaborator Author

The purpose of ADJUST_RESIZE is to.. well, resize the upper screen when the keyboard is opened, but I recall such behavior is not consistent depending on your device/Android version.

So, might as well change it to ADJUST_PAN?

@MJ1998 MJ1998 added P2 Medium priority issue effort:xsmall Extra small effort - 1 day labels Jul 29, 2024
@github-project-automation github-project-automation bot moved this from New to Complete in Android FHIR SDK Sep 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
effort:xsmall Extra small effort - 1 day P2 Medium priority issue
Projects
Status: Complete
Development

Successfully merging a pull request may close this issue.

2 participants