Skip to content

Commit

Permalink
fix(android): should hide soft input even input not focus
Browse files Browse the repository at this point in the history
  • Loading branch information
siguangli2018 authored and hippy-actions[bot] committed Feb 27, 2024
1 parent 89ce3d7 commit c9a7f0b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ public InputMethodManager getInputMethodManager() {

public void hideInputMethod() {
InputMethodManager imm = this.getInputMethodManager();
if (imm != null && imm.isActive(this)) {
if (imm != null && imm.isActive()) {
try {
imm.hideSoftInputFromWindow(this.getWindowToken(), 0);
} catch (Exception e) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ public class HippyTextInputController extends HippyViewController<HippyTextInput
private static final String FUNC_IS_FOCUSED = "isFocused";
private static final String FUNC_GET_VALUE = "getValue";
private static final String FUNC_SET_VALUE = "setValue";
private static final String FUNC_KEYBOARD_DISMISS = "dissmiss";
private static final String FUNC_KEYBOARD_DISMISS = "dismiss";

@Override
protected View createViewImpl(Context context) {
Expand Down

0 comments on commit c9a7f0b

Please sign in to comment.