优化浇水流程,以及中英文遗漏点

This commit is contained in:
fengjignqi
2026-06-29 14:13:31 +08:00
parent 73d5003655
commit fbef699b50
3 changed files with 12 additions and 413 deletions

View File

@@ -22,6 +22,7 @@ import android.view.View;
import android.view.ViewGroup;
import android.view.Window;
import android.view.WindowManager;
import android.view.inputmethod.InputMethodManager;
import android.widget.EditText;
import android.widget.ImageView;
import android.widget.LinearLayout;
@@ -1016,6 +1017,16 @@ public abstract class BaseFragment<T extends ViewBinding,P extends IPresenter> e
dialog = builder.show();
editText.requestFocus();
editText.postDelayed(() -> {
if (editText != null) {
InputMethodManager imm = (InputMethodManager) mContext.getSystemService(Context.INPUT_METHOD_SERVICE);
if (imm != null) {
imm.showSoftInput(editText, InputMethodManager.SHOW_IMPLICIT);
}
}
}, 200);
dialog.setCanceledOnTouchOutside(
touchOutsideCancel
);