admin
2023-10-08 2c5b6e472c368e80d85b8ea2b461c9ea62981d9b
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){
        }
    }
    
    /**