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 state in certain device is not accurate #24

Open
gcrescent opened this issue Feb 1, 2018 · 3 comments
Open

Keyboard state in certain device is not accurate #24

gcrescent opened this issue Feb 1, 2018 · 3 comments

Comments

@gcrescent
Copy link

gcrescent commented Feb 1, 2018

Hi, I am using your library for some time and it works great, but recently one of my user report a strange behaviour.

Here are the details:

  1. Device name: Essential ph-1 phone
  2. Android version 7.1.1
  3. Use default keyboard, not custom
  4. I use windowSoftInputMode adjustResize

I use the event listener to hide a button when the keyboard is open, I think somehow this device detect the keyboard is open when it is not (the activity just started, and it don't show keyboard on start). Do you have any idea what cause this? Thanks

@yshrsmz
Copy link
Owner

yshrsmz commented Feb 2, 2018

Thanks for reporting.

Since Essential Phone's display form factor is a bit different from other devices, maybe the threshold we currently use is not enough(or too much) for the device.

You can try adjust this value to see the difference

@egek92
Copy link

egek92 commented Apr 2, 2018

is this working in 3rd party keyboards?

@anoop44
Copy link
Collaborator

anoop44 commented Apr 2, 2018

@egek92 It should be working for 3rd Party Keyboards as well since it is independent of the keyboard. It checks only the change in height of rootview. It might not work for certain keyboards if their height is really low that is lower than the threshold.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants