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

Commit 04fcf1ca authored by Yohei Yukawa's avatar Yohei Yukawa Committed by Android (Google) Code Review
Browse files

Merge "Show IME-related system IME dialogs over windows owned by the IME"

parents 65c64c31 1ee99c46
Loading
Loading
Loading
Loading
+9 −4
Original line number Diff line number Diff line
@@ -1484,10 +1484,15 @@ public class WindowManagerService extends IWindowManager.Stub

        if (pos >= 0) {
            final AppWindowToken targetAppToken = mInputMethodTarget.mAppToken;
            if (pos < windows.size()) {
            // Skip windows owned by the input method.
            if (mInputMethodWindow != null) {
                while (pos < windows.size()) {
                    WindowState wp = windows.get(pos);
                if (wp == mInputMethodWindow) {
                    if (wp == mInputMethodWindow || wp.mAttachedWindow == mInputMethodWindow) {
                        pos++;
                        continue;
                    }
                    break;
                }
            }
            if (DEBUG_INPUT_METHOD) Slog.v(TAG, "Adding " + N + " dialogs at pos=" + pos);