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

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

Change-Id: Iafe8aced9d9dac3620ec599605a558751e8c81bd
This commit is contained in:
Hyunyoung Song
2021-05-13 15:52:18 +00:00
committed by Automerger Merge Worker

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