Skip to content

Commit bf378fd

Browse files
committed
Don't allow screen invalidations to go outside bounds of screen
Fixes invalidation issue in Launcher Change-Id: Iab32149489aed6884e917f0ac5a548d4ae26896e
1 parent 68d97aa commit bf378fd

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)