Check IME visibility check before calling IMM.hide()

Bug: 183062683
Bug: 185558351

Test: manual
Change-Id: Ib3bee0f895cc03c6faeb662d078d013ac4d6e406
This commit is contained in:
Hyunyoung Song
2021-04-26 21:25:31 -07:00
parent a7fc3ee4c7
commit e25ee1ed98
2 changed files with 16 additions and 3 deletions

View File

@@ -99,7 +99,7 @@ public class ExtendedEditText extends EditText {
}
public void hideKeyboard() {
UiThreadHelper.hideKeyboardAsync(getContext(), getWindowToken());
UiThreadHelper.hideKeyboardAsync(Launcher.getLauncher(getContext()), getWindowToken());
}
private boolean showSoftInput() {