This reverts commit 6967def950. InputMethodManager method does not work reliably on widgets. It also cannot reliably hide the keyboard.
6967def950