mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-28 15:56:49 +00:00
Merge "Use IMM.hideSoftInputFromWindow to close the window" into sc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
e2522016ae
@@ -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