mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-03 09:26:51 +00:00
Call windowInsetController.hide method when hiding keyboard
Bug: 186608200 Test: manual Change-Id: I9a819aec217a91e8b6de58d074dbdb134dacaeb8
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user