diff options
author | Michael Jurka <mikejurka@google.com> | 2012-03-13 18:34:35 -0700 |
---|---|---|
committer | Michael Jurka <mikejurka@google.com> | 2012-03-13 18:35:10 -0700 |
commit | 952e02b430bb95534416ec689f08a792aca0b853 (patch) | |
tree | f8f4c677ae6de4c4c58834631201f37d1be6c8eb /core | |
parent | c419610477a1e8ff4d83c47b049a127f99ffec14 (diff) | |
download | frameworks_base-952e02b430bb95534416ec689f08a792aca0b853.zip frameworks_base-952e02b430bb95534416ec689f08a792aca0b853.tar.gz frameworks_base-952e02b430bb95534416ec689f08a792aca0b853.tar.bz2 |
Fix hardware layer redraw bug
Diffstat (limited to 'core')
-rw-r--r-- | core/java/android/view/View.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/java/android/view/View.java b/core/java/android/view/View.java index 7a1923b..7d09fb2 100644 --- a/core/java/android/view/View.java +++ b/core/java/android/view/View.java @@ -10372,10 +10372,10 @@ public class View implements Drawable.Callback, Drawable.Callback2, KeyEvent.Cal if (mHardwareLayer == null) { mHardwareLayer = mAttachInfo.mHardwareRenderer.createHardwareLayer( width, height, isOpaque()); - mLocalDirtyRect.setEmpty(); + mLocalDirtyRect.set(0, 0, width, height); } else if (mHardwareLayer.getWidth() != width || mHardwareLayer.getHeight() != height) { mHardwareLayer.resize(width, height); - mLocalDirtyRect.setEmpty(); + mLocalDirtyRect.set(0, 0, width, height); } // The layer is not valid if the underlying GPU resources cannot be allocated |