Merge "Update touch mode regardless of mStopped" into tm-dev am: 88fdb7aa46
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17607661 Change-Id: I836dfd67e99ee8022cf978a842e5ab0c8c2ac1c6 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
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