Skip to content

Commit 6ad5d69

Browse files
mikejurkaAndroid Git Automerger
authored andcommitted
am 0a23267: am bf378fd: Don\'t allow screen invalidations to go outside bounds of screen
* commit '0a232673370989f54e05fd2508ce90267a54abd1': Don't allow screen invalidations to go outside bounds of screen
2 parents 8857f66 + 0a23267 commit 6ad5d69

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

core/java/android/view/HardwareRenderer.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -811,6 +811,8 @@ boolean draw(View view, View.AttachInfo attachInfo, HardwareDrawCallbacks callba
811811
if (canDraw()) {
812812
if (!hasDirtyRegions()) {
813813
dirty = null;
814+
} else if (dirty != null) {
815+
dirty.intersect(0, 0, mWidth, mHeight);
814816
}
815817
attachInfo.mIgnoreDirtyState = true;
816818
attachInfo.mDrawingTime = SystemClock.uptimeMillis();

0 commit comments

Comments
 (0)