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

Commit 7ef54561 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Call windowInsetController.hide method when hiding keyboard" into sc-dev

parents 46d420bf e72dd4a8
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -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();