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

Commit 844e1712 authored by Jorim Jaggi's avatar Jorim Jaggi
Browse files

Don't relayout when windows move during resize

Not needed and just increases system load.

Bug: 25015474
Change-Id: Iaf871389527237b5cbc88c03b2f060629b6351dc
parent 4846ee3c
Loading
Loading
Loading
Loading
+8 −3
Original line number Diff line number Diff line
@@ -3401,11 +3401,16 @@ public final class ViewRootImpl implements ViewParent,

                    mPendingBackDropFrame.set(mWinFrame);

                    // Suppress layouts during resizing - a correct layout will happen when resizing
                    // is done, and this just increases system load.
                    boolean suppress = mDragResizing && mResizeMode == RESIZE_MODE_DOCKED_DIVIDER;
                    if (!suppress) {
                        if (mView != null) {
                            forceLayout(mView);
                        }
                        requestLayout();
                    }
                }
                break;
            case MSG_WINDOW_FOCUS_CHANGED: {
                if (mAdded) {