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

Commit 70865a87 authored by lumark's avatar lumark
Browse files

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

ag/4643261 introduced process level configuration change.
Calling ActivityTaskManagerInternal.onImeWindowSetOnDisplay
for IME process to update display configuration & its resources.

Bug: 112585232
Test: atest ActivityManagerMultiDisplayTests#testImeWindowVisibilityForVirtualDisplay
Change-Id: Ie45fb566e3faa4c2757a523ecf7a3a83432ccecc
parent 5d41bd29
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 */);
    }