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

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14529286

Change-Id: I76f9fe875b28637e3273783746fc4b8d1ec26613
This commit is contained in:
Hyunyoung Song
2021-05-13 15:36:53 +00:00
committed by Automerger Merge Worker
@@ -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()),