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

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

Merge "Handle IME hide internal state correctly." into rvc-dev

parents d972004c e68d6f53
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -878,8 +878,7 @@ public class InputMethodService extends AbstractInputMethodService {
    }

    private void notifyImeHidden() {
        setImeWindowStatus(IME_ACTIVE | IME_INVISIBLE, mBackDisposition);
        onPreRenderedWindowVisibilityChanged(false /* setVisible */);
        doHideWindow();
    }

    private void removeImeSurface() {
@@ -2284,7 +2283,9 @@ public class InputMethodService extends AbstractInputMethodService {
        if (mDecorViewVisible) {
            // When insets API is enabled, it is responsible for client and server side
            // visibility of IME window.
            if (!isVisibilityAppliedUsingInsetsConsumer()) {
            if (isVisibilityAppliedUsingInsetsConsumer()) {
                mInputView.dispatchWindowVisibilityChanged(View.GONE);
            } else {
                mWindow.hide();
            }
            mDecorViewVisible = false;