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

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

Merge "Prevent caching unexpected IME shown state for legacy split" into sc-dev

parents 848cc69c 6d17d410
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -143,14 +143,14 @@ class DividerImeController implements DisplayImeController.ImePositionProcessor
    @ImeAnimationFlags
    public int onImeStartPositioning(int displayId, int hiddenTop, int shownTop,
            boolean imeShouldShow, boolean imeIsFloating, SurfaceControl.Transaction t) {
        mHiddenTop = hiddenTop;
        mShownTop = shownTop;
        mTargetShown = imeShouldShow;
        if (!isDividerVisible()) {
            return 0;
        }
        final boolean splitIsVisible = !getView().isHidden();
        mHiddenTop = hiddenTop;
        mShownTop = shownTop;
        mTargetShown = imeShouldShow;
        mSecondaryHasFocus = getSecondaryHasFocus(displayId);
        final boolean splitIsVisible = !getView().isHidden();
        final boolean targetAdjusted = splitIsVisible && imeShouldShow && mSecondaryHasFocus
                && !imeIsFloating && !getLayout().mDisplayLayout.isLandscape()
                && !mSplits.mSplitScreenController.isMinimized();