diff options
author | Dianne Hackborn <hackbod@google.com> | 2011-08-02 16:37:58 -0700 |
---|---|---|
committer | Dianne Hackborn <hackbod@google.com> | 2011-08-02 16:37:58 -0700 |
commit | 6311d0a079702b29984c0d31937345be105e1a5e (patch) | |
tree | c9d5ebf9e2d1f6685220fe2e31ad8a4e21366a11 /core/java/android/view/ViewDebug.java | |
parent | 7374d9728bd0e8847bab723608ebab3542e8157e (diff) | |
download | frameworks_base-6311d0a079702b29984c0d31937345be105e1a5e.zip frameworks_base-6311d0a079702b29984c0d31937345be105e1a5e.tar.gz frameworks_base-6311d0a079702b29984c0d31937345be105e1a5e.tar.bz2 |
Clear the bitmap from the canvas in a lot of places.
Change-Id: I6b2071ac7b348c473b9bdd1b972d095aebbb4fb3
Diffstat (limited to 'core/java/android/view/ViewDebug.java')
-rw-r--r-- | core/java/android/view/ViewDebug.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/core/java/android/view/ViewDebug.java b/core/java/android/view/ViewDebug.java index 96e550e..65e72c9 100644 --- a/core/java/android/view/ViewDebug.java +++ b/core/java/android/view/ViewDebug.java @@ -1094,6 +1094,9 @@ public class ViewDebug { } public void post(Object... data) { + if (data[1] != null) { + ((Canvas) data[1]).setBitmap(null); + } if (data[0] != null) { ((Bitmap) data[0]).recycle(); } |