admin
2022-01-21 ad9b7d5c3be4eb1366892e61e28e80442b6f7bdd
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){
        }
    }
    
    /**