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

Commit 9ebb6cb8 authored by Cosmin Băieș's avatar Cosmin Băieș Committed by Android (Google) Code Review
Browse files

Merge "Fix IME visibleTopInsets before showWindow" into main

parents 34c8f6ed c277a8e2
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -734,10 +734,6 @@ public class InputMethodService extends AbstractInputMethodService {
    final ViewTreeObserver.OnComputeInternalInsetsListener mInsetsComputer = info -> {
        onComputeInsets(mTmpInsets);
        mNavigationBarController.updateInsets(mTmpInsets);
        if (!mViewsCreated) {
            // The IME views are not ready, keep visible insets untouched.
            mTmpInsets.visibleTopInsets = 0;
        }
        if (isExtractViewShown()) {
            // In true fullscreen mode, we just say the window isn't covering
            // any content so we don't impact whatever is behind.
@@ -754,6 +750,8 @@ public class InputMethodService extends AbstractInputMethodService {
        mNavigationBarController.updateTouchableInsets(mTmpInsets, info);

        if (mInputFrame != null) {
            // info.visibleInsets is the decor view height in full screen mode. Instead, use the
            // visibleTopInsets here to correctly set exclusion rect for full screen IMEs.
            setImeExclusionRect(mTmpInsets.visibleTopInsets);
        }
    };