Skip to content

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

Open
@hudsonm4000

Description

@hudsonm4000

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions