Merge "Do not go through a layout if visibility is GONE" into lmp-mr1-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
74fe6ce72d
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user