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

Commit fb7392bc 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: f53aa188

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

Change-Id: Iade0364056b82623b3994211b58d51393e240f72
parents 95c86568 f53aa188
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());
        }