Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit af6686bf authored by Hyunyoung Song's avatar Hyunyoung Song
Browse files

Use IMM.hideSoftInputFromWindow to close the window

Bug: 187589678
Test: manual
Change-Id: Id46a36432a03638877f854f32bfa03183c7cb019
parent e2801bcb
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -50,12 +50,10 @@ 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;
            }
        }

        Message.obtain(HANDLER.get(root.getContext()),
                MSG_HIDE_KEYBOARD, token).sendToTarget();