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);
|
||||
}
|
||||
|
||||
if (mFirst) {
|
||||
// make sure touch mode code executes by setting cached value
|
||||
// to opposite of the added touch mode.
|
||||
mAttachInfo.mInTouchMode = !mAddedTouchMode;
|
||||
ensureTouchModeLocally(mAddedTouchMode);
|
||||
}
|
||||
|
||||
boolean layoutRequested = mLayoutRequested && (!mStopped || mReportNextDraw);
|
||||
if (layoutRequested) {
|
||||
|
||||
final Resources res = mView.getContext().getResources();
|
||||
|
||||
if (mFirst) {
|
||||
// make sure touch mode code executes by setting cached value
|
||||
// to opposite of the added touch mode.
|
||||
mAttachInfo.mInTouchMode = !mAddedTouchMode;
|
||||
ensureTouchModeLocally(mAddedTouchMode);
|
||||
} else {
|
||||
if (!mFirst) {
|
||||
if (lp.width == ViewGroup.LayoutParams.WRAP_CONTENT
|
||||
|| lp.height == ViewGroup.LayoutParams.WRAP_CONTENT) {
|
||||
windowSizeMayChange = true;
|
||||
@@ -2797,7 +2796,7 @@ public final class ViewRootImpl implements ViewParent,
|
||||
}
|
||||
|
||||
// Ask host how big it wants to be
|
||||
windowSizeMayChange |= measureHierarchy(host, lp, res,
|
||||
windowSizeMayChange |= measureHierarchy(host, lp, mView.getContext().getResources(),
|
||||
desiredWindowWidth, desiredWindowHeight);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user