Merge "Call windowInsetController.hide method when hiding keyboard" into sc-dev am: 7ef5456182

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

Change-Id: I6f4f7c4bb68d2ced86f60013fd00a66c7ccbea98
This commit is contained in:
TreeHugger Robot
2021-05-05 20:39:42 +00:00
committed by Automerger Merge Worker
@@ -48,7 +48,13 @@ public class UiThreadHelper {
WindowInsets rootInsets = launcher.getRootView().getRootWindowInsets();
boolean isImeShown = rootInsets != null && rootInsets.isVisible(
WindowInsets.Type.ime());
if (!isImeShown) return;
if (isImeShown) {
// this call is already asynchronous
launcher.getAppsView().getWindowInsetsController().hide(
WindowInsets.Type.ime()
);
}
return;
}
Message.obtain(HANDLER.get(launcher), MSG_HIDE_KEYBOARD, token).sendToTarget();