Merge "Revert "Get rid of double measure"" into tm-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
80832d2efe
@@ -2802,10 +2802,6 @@ public final class ViewRootImpl implements ViewParent,
|
|||||||
// Execute enqueued actions on every traversal in case a detached view enqueued an action
|
// Execute enqueued actions on every traversal in case a detached view enqueued an action
|
||||||
getRunQueue().executeActions(mAttachInfo.mHandler);
|
getRunQueue().executeActions(mAttachInfo.mHandler);
|
||||||
|
|
||||||
if (mApplyInsetsRequested) {
|
|
||||||
dispatchApplyInsets(host);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (mFirst) {
|
if (mFirst) {
|
||||||
// make sure touch mode code executes by setting cached value
|
// make sure touch mode code executes by setting cached value
|
||||||
// to opposite of the added touch mode.
|
// to opposite of the added touch mode.
|
||||||
@@ -2869,6 +2865,18 @@ public final class ViewRootImpl implements ViewParent,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (mApplyInsetsRequested) {
|
||||||
|
dispatchApplyInsets(host);
|
||||||
|
if (mLayoutRequested) {
|
||||||
|
// Short-circuit catching a new layout request here, so
|
||||||
|
// we don't need to go through two layout passes when things
|
||||||
|
// change due to fitting system windows, which can happen a lot.
|
||||||
|
windowSizeMayChange |= measureHierarchy(host, lp,
|
||||||
|
mView.getContext().getResources(),
|
||||||
|
desiredWindowWidth, desiredWindowHeight);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (layoutRequested) {
|
if (layoutRequested) {
|
||||||
// Clear this now, so that if anything requests a layout in the
|
// Clear this now, so that if anything requests a layout in the
|
||||||
// rest of this function we will catch it and re-run a full
|
// rest of this function we will catch it and re-run a full
|
||||||
|
|||||||
Reference in New Issue
Block a user