优化浇水流程,以及中英文遗漏点
This commit is contained in:
@@ -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
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user