Handle requestFocus for ENABLE_DEVICE_SEARCH
Bug: 161594550 Change-Id: Ic99c04f1235e48e90b64df86e3739f8e14bc648f
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user