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

Commit ca02322f authored by Riddle Hsu's avatar Riddle Hsu Committed by Automerger Merge Worker
Browse files

Merge "Reduce reporting resize when the window is in relayout" into sc-dev am:...

Merge "Reduce reporting resize when the window is in relayout" into sc-dev am: f53aa188 am: fb7392bc

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14791882

Change-Id: If1e68997e586a49b8439fd412d5383fab57c9856
parents 3164090c fb7392bc
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -1500,7 +1500,9 @@ class WindowState extends WindowContainer<WindowState> implements WindowManagerP
        }

        boolean didFrameInsetsChange = setReportResizeHints();
        boolean configChanged = !isLastConfigReportedToClient();
        // The latest configuration will be returned by the out parameter of relayout, so it is
        // unnecessary to report resize if this window is running relayout.
        final boolean configChanged = !mInRelayout && !isLastConfigReportedToClient();
        if (DEBUG_CONFIGURATION && configChanged) {
            Slog.v(TAG_WM, "Win " + this + " config changed: " + getConfiguration());
        }