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:
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user