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

Commit 10d98e4d authored by Filip Gruszczynski's avatar Filip Gruszczynski
Browse files

Always elevate input method above the input target.

Bug: 26286301
Change-Id: I02dd290c1dbababed26d34a7e61bb4d7bad5e9ac
parent d2be14a1
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -178,6 +178,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);
    }