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

Commit 3510bd9b authored by Filip Gruszczynski's avatar Filip Gruszczynski Committed by Android (Google) Code Review
Browse files

Merge "Always elevate input method above the input target."

parents 8b18f2d6 10d98e4d
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -181,6 +181,11 @@ public class WindowLayersController {
        // immediately receive the same treatment, e.g. to be above the dock divider.
        layer = assignAndIncreaseLayerIfNeeded(mReplacingWindow, layer);
        layer = assignAndIncreaseLayerIfNeeded(mPinnedWindow, layer);
        final WindowState inputMethodTarget = mService.mInputMethodTarget;
        // There might be no applications windows yet, so we need to make sure we uplift the input
        // method above the target.
        layer = Math.max(layer,
                inputMethodTarget != null ? inputMethodTarget.mWinAnimator.mAnimLayer + 1 : 0);
        layer = assignAndIncreaseLayerIfNeeded(mImeWindow, layer);
    }