Merge "Do not go through a layout if visibility is GONE" into lmp-mr1-dev

This commit is contained in:
Craig Mautner
2014-10-28 13:56:06 +00:00
committed by Android (Google) Code Review

View File

@@ -2997,8 +2997,8 @@ public class WindowManagerService extends IWindowManager.Stub
return 0;
}
WindowStateAnimator winAnimator = win.mWinAnimator;
if (win.mRequestedWidth != requestedWidth
|| win.mRequestedHeight != requestedHeight) {
if (viewVisibility != View.GONE && (win.mRequestedWidth != requestedWidth
|| win.mRequestedHeight != requestedHeight)) {
win.mLayoutNeeded = true;
win.mRequestedWidth = requestedWidth;
win.mRequestedHeight = requestedHeight;