Handle requestFocus for ENABLE_DEVICE_SEARCH

Bug: 161594550

Change-Id: Ic99c04f1235e48e90b64df86e3739f8e14bc648f
This commit is contained in:
Hyunyoung Song
2020-07-27 22:52:29 -07:00
parent f737f00d89
commit 26bca08089
4 changed files with 24 additions and 8 deletions
@@ -58,6 +58,17 @@ public class AllAppsInsetTransitionController {
mApps = appsView;
}
public void hide() {
if (!BuildCompat.isAtLeastR()) return;
WindowInsets insets = mApps.getRootWindowInsets();
if (insets == null) return;
if (insets.isVisible(WindowInsets.Type.ime())) {
mApps.getWindowInsetsController().hide(WindowInsets.Type.ime());
}
}
/**
* Initializes member variables and requests for the {@link WindowInsetsAnimationController}
* object.