mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-01 16:26:47 +00:00
Use IMM.hideSoftInputFromWindow to close the window
Bug: 187589678 Test: manual Change-Id: Id46a36432a03638877f854f32bfa03183c7cb019
This commit is contained in:
@@ -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()),
|
||||
|
||||
Reference in New Issue
Block a user