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

This commit is contained in:
Hyunyoung Song
2021-05-13 15:23:44 +00:00
committed by Android (Google) Code Review

View File

@@ -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()),