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 won't hide when home button is tapped #300

Open
rafaelsouzaim opened this issue Feb 1, 2018 · 2 comments
Open

Keyboard won't hide when home button is tapped #300

rafaelsouzaim opened this issue Feb 1, 2018 · 2 comments

Comments

@rafaelsouzaim
Copy link

Hi guys. Just spotted some odd behaviour. When I tap the textfield, keyboard appears, of course, as expected. Then I press home button (or the other square button, alternating app), but the keyboard doesn't hide. When I try the same thing with a normal TextView everything works as expected though.

@agilangovan
Copy link

I am experiencing similar behavior. Except in my case, my search bar is on another activity and when I press the home button to go back to the previous activity, the keyboard does not disappear. I don't have any keyboard toggling functions in my project so I don't know why it is not going away. And what's odd is that this doesn't occur all the time, only on random occasion.

@rafaelsouzaim
Copy link
Author

Oh my bad, when I said home button I meant the circle button on the Navigation Bar. But yeah @agilangovan I think it's the same problem, in my case it happens always. For now the solution for me will be something like searchView.clearSearchFocus() inside one of the Activity's lifecycle methods. It can work for you as well.

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

No branches or pull requests

2 participants