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

closeKeyoard() ... Navigation bar doesn't always disappear #655

Open
hudsonm4000 opened this issue May 11, 2021 · 1 comment
Open

closeKeyoard() ... Navigation bar doesn't always disappear #655

hudsonm4000 opened this issue May 11, 2021 · 1 comment

Comments

@hudsonm4000
Copy link

hudsonm4000 commented May 11, 2021

Hi

I raised this on the Processing forum a while back but didn't get any replies. I've done a lot of reading etc and this may not have a solution from what I have found out ... but hopefully an Android expert here might know something

The issue ... if I open the soft keyboard everything works fine until I have used the Navigation Bar HIDE arrow. The keyboard gets hidden as expected, but the bottom Navigation Bar stays visible ... I can get the keyboard back by recalling openKeyboard(), and using the RETURN key does close everything including the Nav Bar, but why doesn't it disappear when just hiding the keyboard?

Looking at the closeKeyboard() code, I am guessing my tapping on the HIDE button sets keyBoardIsOpen to false, so that the closeKeyboard() function can never execute, or that the parentLayout test isn't being net to setFullScreen again?

  public void closeKeyboard() {
    if (this.keyboardIsOpen) {
      Context context = this.surface.getContext();
      InputMethodManager imm = (InputMethodManager)context.getSystemService("input_method");
      imm.toggleSoftInput(1, 0);
      this.keyboardIsOpen = false;
      if (this.parentLayout == -1) {
        this.setFullScreenVisibility();
      }
    }
  }

This is on an oldish phone running Marshmallow. May not be an issue on a more modern device. I don't know!

Any thoughts, anyone?

Thanks
Mark

@codeanticode
Copy link
Member

I'd need to look into it more closely to see what's the problem or if it's still present in newer versions of Android. Tagging for the next bugfix release. Thank you!

@codeanticode codeanticode removed this from the 4.6 bugfixes milestone Jun 10, 2024
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

2 participants