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

Commit f6244ab6 authored by Taran Singh's avatar Taran Singh Committed by Automerger Merge Worker
Browse files

Handle IME hide internal state correctly. am: e68d6f53

Change-Id: I37e79cbe6507411b5ab45f89a5fd5d010b09a79c
parents c1d824bf 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;