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

Commit 97283122 authored by Tiger Huang's avatar Tiger Huang Committed by Automerger Merge Worker
Browse files

Merge "Only use the IME target from IMMS to update the IME control target"...

Merge "Only use the IME target from IMMS to update the IME control target" into rvc-dev am: b7dda7d9 am: b6e6c540

Change-Id: Ie108224f4e8f28f63672d33b50e7ee8bf3a755fa
parents 0e49358f b6e6c540
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -3421,7 +3421,10 @@ class DisplayContent extends WindowContainer<DisplayContent.DisplayChildWindowCo

    private void setInputMethodTarget(WindowState target, boolean targetWaitingAnim) {
        // Always update control target. This is needed to handle rotation.
        updateImeControlTarget(target);
        // We cannot set target as the control target, because mInputMethodTarget can only help
        // decide the z-order of IME, but cannot control IME. Only the IME target reported from
        // updateInputMethodTargetWindow can control IME.
        updateImeControlTarget(mInputMethodControlTarget);
        if (target == mInputMethodTarget && mInputMethodTargetWaitingAnim == targetWaitingAnim) {
            return;
        }