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

Commit 130ae676 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Automerger Merge Worker
Browse files

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

Merge "Revert "Only use the IME target from IMMS to update the IME control target"" into rvc-dev am: e3b4daa8 am: 8ecb48c1 am: cc33820e am: 1b122416

Change-Id: I18e94a7f91ced7298ae8b9d27b97abce2a806ce6
parents 1caf62fc 1b122416
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -198,6 +198,7 @@ import android.view.ViewRootImpl;
import android.view.WindowInsets;
import android.view.WindowManager;
import android.view.WindowManagerPolicyConstants.PointerEventListener;
import android.window.ITaskOrganizer;

import com.android.internal.annotations.VisibleForTesting;
import com.android.internal.logging.MetricsLogger;
@@ -3421,10 +3422,7 @@ class DisplayContent extends WindowContainer<DisplayContent.DisplayChildWindowCo

    private void setInputMethodTarget(WindowState target, boolean targetWaitingAnim) {
        // Always update control target. This is needed to handle rotation.
        // 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);
        updateImeControlTarget(target);
        if (target == mInputMethodTarget && mInputMethodTargetWaitingAnim == targetWaitingAnim) {
            return;
        }