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

Commit c2b02425 authored by Tiger Huang's avatar Tiger Huang
Browse files

Don't notify insets change while moving invisible IME

The client can still get notified while the IME becomes visible.

Fix: 181089278
Test: forrest with
health/microbench/startup/hscapps/compile-speed-profile/open-calculator

Change-Id: I8893232c4c9dc98e5d297b9536942b1923481644
parent d549483e
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -3754,8 +3754,8 @@ class DisplayContent extends RootDisplayArea implements WindowManagerPolicy.Disp
        // app.
        // app.
        assignWindowLayers(true /* setLayoutNeeded */);
        assignWindowLayers(true /* setLayoutNeeded */);
        // 3. The z-order of IME might have been changed. Update the above insets state.
        // 3. The z-order of IME might have been changed. Update the above insets state.
        mInsetsStateController.updateAboveInsetsState(
        mInsetsStateController.updateAboveInsetsState(mInputMethodWindow,
                mInputMethodWindow, true /* notifyInsetsChange */);
                mInsetsStateController.getRawInsetsState().getSourceOrDefaultVisibility(ITYPE_IME));
        // 4. Update the IME control target to apply any inset change and animation.
        // 4. Update the IME control target to apply any inset change and animation.
        // 5. Reparent the IME container surface to either the input target app, or the IME window
        // 5. Reparent the IME container surface to either the input target app, or the IME window
        // parent.
        // parent.