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

Commit a3dc0933 authored by Riddle Hsu's avatar Riddle Hsu Committed by Android (Google) Code Review
Browse files

Merge "Reduce unnecessary reportResized of starting window" into main

parents 7a70e55b 2367e035
Loading
Loading
Loading
Loading
+4 −0
Original line number Original line Diff line number Diff line
@@ -858,6 +858,10 @@ class WindowState extends WindowContainer<WindowState> implements WindowManagerP
     * {@link InsetsStateController#notifyInsetsChanged}.
     * {@link InsetsStateController#notifyInsetsChanged}.
     */
     */
    boolean isReadyToDispatchInsetsState() {
    boolean isReadyToDispatchInsetsState() {
        if (mStartingData != null) {
            // Starting window doesn't consider insets.
            return false;
        }
        final boolean visible = shouldCheckTokenVisibleRequested()
        final boolean visible = shouldCheckTokenVisibleRequested()
                ? isVisibleRequested() : isVisible();
                ? isVisibleRequested() : isVisible();
        return visible && mFrozenInsetsState == null;
        return visible && mFrozenInsetsState == null;