commit | bf378fd7d7a91085685fe9e5528b84c485041c77 | [log] [tgz] |
---|---|---|
author | Michael Jurka <mikejurka@google.com> | Thu Feb 23 00:02:49 2012 -0800 |
committer | Michael Jurka <mikejurka@google.com> | Thu Feb 23 00:19:58 2012 -0800 |
tree | 72f6a00f0d66711da1089069049a998fbcc57def | |
parent | 68d97aa2c1ff16f327491fed5afb8b318f034a01 [diff] |
Don't allow screen invalidations to go outside bounds of screen Fixes invalidation issue in Launcher Change-Id: Iab32149489aed6884e917f0ac5a548d4ae26896e
diff --git a/core/java/android/view/HardwareRenderer.java b/core/java/android/view/HardwareRenderer.java index ccb6489..71f3cf5 100644 --- a/core/java/android/view/HardwareRenderer.java +++ b/core/java/android/view/HardwareRenderer.java
@@ -811,6 +811,8 @@ if (canDraw()) { if (!hasDirtyRegions()) { dirty = null; + } else if (dirty != null) { + dirty.intersect(0, 0, mWidth, mHeight); } attachInfo.mIgnoreDirtyState = true; attachInfo.mDrawingTime = SystemClock.uptimeMillis();