Merge "Use IMM.hideSoftInputFromWindow to close the window" into sc-dev

This commit is contained in:
Hyunyoung Song authored and Android (Google) Code Review committed 2021-05-13 15:23:44 +00:00
commit e2522016ae
1 file changed
+2 -4
@@ -50,11 +50,9 @@ public class UiThreadHelper {
WindowInsets rootInsets = root.getRootWindowInsets();
boolean isImeShown = rootInsets != null && rootInsets.isVisible(
WindowInsets.Type.ime());
if (isImeShown) {
// this call is already asynchronous
root.getWindowInsetsController().hide(WindowInsets.Type.ime());
if (!isImeShown) {
return;
}
return;
}
Message.obtain(HANDLER.get(root.getContext()),