diff options
| author | 2012-10-17 14:52:47 -0700 | |
|---|---|---|
| committer | 2012-10-17 14:52:47 -0700 | |
| commit | 6f3e7bbf14d43553dfca6a59bbbb1c6ee19a70fc (patch) | |
| tree | b0a5dbd0e608dc98963bde185a3260b895cee93c | |
| parent | 3301654a541b5743b6538ce1e161c35330673949 (diff) | |
| parent | 9911d18f0ebc9a68e41838471de507a04ea8fd9d (diff) | |
Merge "Fix for previous commit on non-interesecting invalidations" into jb-mr1-dev
| -rw-r--r-- | core/java/android/view/ViewRootImpl.java | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/core/java/android/view/ViewRootImpl.java b/core/java/android/view/ViewRootImpl.java index b5a9090de968..67452ec1d19f 100644 --- a/core/java/android/view/ViewRootImpl.java +++ b/core/java/android/view/ViewRootImpl.java @@ -888,9 +888,10 @@ public final class ViewRootImpl implements ViewParent, // updates that lie outside of the visible region final float appScale = mAttachInfo.mApplicationScale; if (localDirty.intersect(0, 0, - (int) (mWidth * appScale + 0.5f), (int) (mHeight * appScale + 0.5f)) && - !mWillDrawSoon) { - scheduleTraversals(); + (int) (mWidth * appScale + 0.5f), (int) (mHeight * appScale + 0.5f))) { + if (!mWillDrawSoon) { + scheduleTraversals(); + } } else { localDirty.setEmpty(); } |