arimorty / floatingsearchview

A search view that implements a floating search bar also known as persistent search
https://github.com/arimorty/floatingsearchview/blob/master/README.md
Apache License 2.0
3.54k stars 668 forks source link

Hide keyboard when window is not visible #260

Closed eduardbosch closed 7 years ago

eduardbosch commented 7 years ago

Hi again 🎉

I've updated the FloatingSearchView in order to hide the keyboard when it's visible state change to NOT visible.

This fixes this issue #244

Before the fix

wrong_keyboard_hide

After the fix

correct_keyboard_hide

eduardbosch commented 7 years ago

I close this pull request because the fix does not work always. If the activity is hidden before the method is called, then the keyboard is not hidden.

I think the best workaround is to use this fix in your activities https://github.com/arimorty/floatingsearchview/issues/244#issuecomment-307466552