static void aHideKeyboard() { View view = aActivity().getCurrentFocus(); if (view != null) { InputMethodManager inputManager = (InputMethodManager) aActivity().getSystemService(Context.INPUT_METHOD_SERVICE); inputManager.hideSoftInputFromWindow(view.getWindowToken(), InputMethodManager.HIDE_NOT_ALWAYS); } }
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: | 387 / 424 |
Referenced in: | [show references] |