library-common/src/com/lcjian/library/util/common/SoftKeyboardUtils.java
@@ -13,8 +13,13 @@ * @param context Activity */ public static void hideSoftInput(Context context) { InputMethodManager imm = (InputMethodManager) context.getSystemService(Context.INPUT_METHOD_SERVICE); imm.hideSoftInputFromWindow(((Activity) context).getCurrentFocus().getWindowToken(), 0); try { InputMethodManager imm = (InputMethodManager) context.getSystemService(Context.INPUT_METHOD_SERVICE); imm.hideSoftInputFromWindow(((Activity) context).getCurrentFocus().getWindowToken(), 0); }catch(Exception e){ } } /**