Merge "Update touch mode regardless of mStopped" into tm-dev
This commit is contained in:
@@ -2767,17 +2767,16 @@ public final class ViewRootImpl implements ViewParent,
|
|||||||
dispatchApplyInsets(host);
|
dispatchApplyInsets(host);
|
||||||
}
|
}
|
||||||
|
|
||||||
boolean layoutRequested = mLayoutRequested && (!mStopped || mReportNextDraw);
|
|
||||||
if (layoutRequested) {
|
|
||||||
|
|
||||||
final Resources res = mView.getContext().getResources();
|
|
||||||
|
|
||||||
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.
|
||||||
mAttachInfo.mInTouchMode = !mAddedTouchMode;
|
mAttachInfo.mInTouchMode = !mAddedTouchMode;
|
||||||
ensureTouchModeLocally(mAddedTouchMode);
|
ensureTouchModeLocally(mAddedTouchMode);
|
||||||
} else {
|
}
|
||||||
|
|
||||||
|
boolean layoutRequested = mLayoutRequested && (!mStopped || mReportNextDraw);
|
||||||
|
if (layoutRequested) {
|
||||||
|
if (!mFirst) {
|
||||||
if (lp.width == ViewGroup.LayoutParams.WRAP_CONTENT
|
if (lp.width == ViewGroup.LayoutParams.WRAP_CONTENT
|
||||||
|| lp.height == ViewGroup.LayoutParams.WRAP_CONTENT) {
|
|| lp.height == ViewGroup.LayoutParams.WRAP_CONTENT) {
|
||||||
windowSizeMayChange = true;
|
windowSizeMayChange = true;
|
||||||
@@ -2797,7 +2796,7 @@ public final class ViewRootImpl implements ViewParent,
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Ask host how big it wants to be
|
// Ask host how big it wants to be
|
||||||
windowSizeMayChange |= measureHierarchy(host, lp, res,
|
windowSizeMayChange |= measureHierarchy(host, lp, mView.getContext().getResources(),
|
||||||
desiredWindowWidth, desiredWindowHeight);
|
desiredWindowWidth, desiredWindowHeight);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user