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

Commit f9656d57 authored by Ming-Shin Lu's avatar Ming-Shin Lu Committed by Android (Google) Code Review
Browse files

Merge "Support IME Window to show in secondary display (2/N)."

parents 453e851d 70865a87
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -2652,6 +2652,12 @@ class DisplayContent extends WindowContainer<DisplayContent.DisplayChildWindowCo
     */
    void setInputMethodWindowLocked(WindowState win) {
        mInputMethodWindow = win;
        // Update display configuration for IME process.
        if (mInputMethodWindow != null) {
            final int imePid = mInputMethodWindow.mSession.mPid;
            mService.mAtmInternal.onImeWindowSetOnDisplay(imePid,
                    mInputMethodWindow.getDisplayId());
        }
        computeImeTarget(true /* updateImeTarget */);
    }