Don't allow screen invalidations to go outside bounds of screen

Fixes invalidation issue in Launcher

Change-Id: Iab32149489aed6884e917f0ac5a548d4ae26896e
This commit is contained in:
Michael Jurka
2012-02-23 00:02:49 -08:00
parent 68d97aa2c1
commit bf378fd7d7

View File

@@ -811,6 +811,8 @@ public abstract class HardwareRenderer {
if (canDraw()) {
if (!hasDirtyRegions()) {
dirty = null;
} else if (dirty != null) {
dirty.intersect(0, 0, mWidth, mHeight);
}
attachInfo.mIgnoreDirtyState = true;
attachInfo.mDrawingTime = SystemClock.uptimeMillis();