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

Commit eaee57ec authored by Antonio Kantek's avatar Antonio Kantek Committed by Android (Google) Code Review
Browse files

Merge "Fix applyImeVisibility usage in IMMS" into main

parents 68ea51b3 195e0556
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -3933,7 +3933,7 @@ public final class InputMethodManagerService implements IInputMethodManagerImpl.
            }
            final var statsToken = createStatsTokenForFocusedClient(isShow, imeVisRes.getReason());
            mVisibilityApplier.applyImeVisibility(mImeBindingState.mFocusedWindow, statsToken,
                    imeVisRes.getState(), imeVisRes.getReason());
                    imeVisRes.getState(), imeVisRes.getReason(), bindingController.mUserId);
            if (imeVisRes.getReason() == SoftInputShowHideReason.HIDE_UNSPECIFIED_WINDOW) {
                // If focused display changed, we should unbind current method
                // to make app window in previous display relayout after Ime
@@ -4821,7 +4821,7 @@ public final class InputMethodManagerService implements IInputMethodManagerImpl.
            @NonNull ImeVisibilityResult result) {
        synchronized (ImfLock.class) {
            mVisibilityApplier.applyImeVisibility(windowToken, statsToken, result.getState(),
                    result.getReason());
                    result.getReason(), mCurrentUserId);
        }
    }

@@ -5105,7 +5105,8 @@ public final class InputMethodManagerService implements IInputMethodManagerImpl.
                if (imeVisRes != null) {
                    // Pass in a null statsToken as the IME snapshot is not tracked by ImeTracker.
                    mVisibilityApplier.applyImeVisibility(mImeBindingState.mFocusedWindow,
                            null /* statsToken */, imeVisRes.getState(), imeVisRes.getReason());
                            null /* statsToken */, imeVisRes.getState(), imeVisRes.getReason(),
                            mCurrentUserId);
                }
                // Eligible IME processes use new "setInteractive" protocol.
                mCurClient.mClient.setInteractive(mIsInteractive, mInFullscreenMode);