1 | static void aHideKeyboard() {
|
2 | View view = aActivity().getCurrentFocus(); |
3 | if (view != null) {
|
4 | InputMethodManager inputManager = (InputMethodManager) aActivity().getSystemService(Context.INPUT_METHOD_SERVICE); |
5 | inputManager.hideSoftInputFromWindow(view.getWindowToken(), InputMethodManager.HIDE_NOT_ALWAYS); |
6 | } |
7 | } |
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1014918 |
| Snippet name: | aHideKeyboard |
| Eternal ID of this version: | #1014918/1 |
| Text MD5: | 7a36e00f550b338ecf7113498dfba681 |
| Author: | stefan |
| Category: | javax / android |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2018-05-06 13:08:22 |
| Source code size: | 328 bytes / 7 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 625 / 668 |
| Referenced in: | [show references] |