am 790a604b: Merge change 6372 into donut
Merge commit '790a604b9c32647711599710e21f0f00eb3d839c' * commit '790a604b9c32647711599710e21f0f00eb3d839c': Fixes #1963217. Increases the invalidate region in compatibility mode.
This commit is contained in:
committed by
The Android Open Source Project
commit
d6f49fe8d6
@@ -553,13 +553,16 @@ public final class ViewRoot extends Handler implements ViewParent,
|
||||
if (DEBUG_DRAW) Log.v(TAG, "Invalidate child: " + dirty);
|
||||
if (mCurScrollY != 0 || mTranslator != null) {
|
||||
mTempRect.set(dirty);
|
||||
dirty = mTempRect;
|
||||
if (mCurScrollY != 0) {
|
||||
mTempRect.offset(0, -mCurScrollY);
|
||||
dirty.offset(0, -mCurScrollY);
|
||||
}
|
||||
if (mTranslator != null) {
|
||||
mTranslator.translateRectInAppWindowToScreen(mTempRect);
|
||||
mTranslator.translateRectInAppWindowToScreen(dirty);
|
||||
}
|
||||
if (mAttachInfo.mScalingRequired) {
|
||||
dirty.inset(-1, -1);
|
||||
}
|
||||
dirty = mTempRect;
|
||||
}
|
||||
mDirty.union(dirty);
|
||||
if (!mWillDrawSoon) {
|
||||
|
||||
Reference in New Issue
Block a user