Don't relayout when windows move during resize

Not needed and just increases system load.

Bug: 25015474
Change-Id: Iaf871389527237b5cbc88c03b2f060629b6351dc
This commit is contained in:
Jorim Jaggi
2016-01-13 17:39:25 -08:00
parent 4846ee3cc3
commit 844e1712df

View File

@@ -3401,10 +3401,15 @@ public final class ViewRootImpl implements ViewParent,
mPendingBackDropFrame.set(mWinFrame);
if (mView != null) {
forceLayout(mView);
// 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();
}
requestLayout();
}
break;
case MSG_WINDOW_FOCUS_CHANGED: {