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

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

Merge "Transfer IME target right away if old target was home" into rvc-dev am:...

Merge "Transfer IME target right away if old target was home" into rvc-dev am: 3fdab335 am: 38415df2 am: 36497e22 am: 3ef36ce6

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11992999

Change-Id: I8777fad4f3f6591c2d2063a9f7027f46996c2af9
parents 470b1f12 3ef36ce6
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -3381,9 +3381,10 @@ class DisplayContent extends DisplayArea.Root implements WindowManagerPolicy.Dis
                "Proposed new IME target: " + target + " for display: " + getDisplayId());

        // Now, a special case -- if the last target's window is in the process of exiting, but
        // not removed, keep on the last target to avoid IME flicker.
        // not removed, keep on the last target to avoid IME flicker. The exception is if the
        // current target is home since we want opening apps to become the IME target right away.
        if (curTarget != null && !curTarget.mRemoved && curTarget.isDisplayedLw()
                && curTarget.isClosing()) {
                && curTarget.isClosing() && !curTarget.isActivityTypeHome()) {
            if (DEBUG_INPUT_METHOD) Slog.v(TAG_WM, "Not changing target till current window is"
                    + " closing and not removed");
            return curTarget;