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

Commit e2522016 authored by Hyunyoung Song's avatar Hyunyoung Song Committed by Android (Google) Code Review
Browse files

Merge "Use IMM.hideSoftInputFromWindow to close the window" into sc-dev

parents 4b374c66 af6686bf
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();