commit | 2d530bff7a0965a73791b29a3f6b3c0e1383e6cf | [log] [tgz] |
---|---|---|
author | Dianne Hackborn <hackbod@google.com> | Tue Aug 02 17:06:42 2011 -0700 |
committer | Android (Google) Code Review <android-gerrit@google.com> | Tue Aug 02 17:06:42 2011 -0700 |
tree | 0ccf06e3bfc3101265cd5364016dbe8fb2b2231d | |
parent | de5ba26ea9c368d1ae8bc5c57cec1f4db9725be4 [diff] | |
parent | 35168ccd8beda015ae5fd6ca25972fc21e422865 [diff] |
Merge "Clear bitmaps from canvases after done drawing to them."
diff --git a/src/com/android/contacts/list/ShortcutIntentBuilder.java b/src/com/android/contacts/list/ShortcutIntentBuilder.java index 43a6c1e..3aa0b55 100644 --- a/src/com/android/contacts/list/ShortcutIntentBuilder.java +++ b/src/com/android/contacts/list/ShortcutIntentBuilder.java
@@ -297,6 +297,7 @@ overlay.setBounds(dst); overlay.draw(canvas); + canvas.setBitmap(null); return icon; } @@ -373,6 +374,8 @@ canvas.drawBitmap(phoneIcon, src, dst, photoPaint); } + canvas.setBitmap(null); + return icon; } }
diff --git a/src/com/android/contacts/widget/TransitionAnimationView.java b/src/com/android/contacts/widget/TransitionAnimationView.java index a58a6c9..e2f8a87 100644 --- a/src/com/android/contacts/widget/TransitionAnimationView.java +++ b/src/com/android/contacts/widget/TransitionAnimationView.java
@@ -179,6 +179,7 @@ paint); canvas.clipRect(mClipRect); view.draw(canvas); + canvas.setBitmap(null); mPreviousStateView.setVisibility(View.VISIBLE); mEnterAnimation.setTarget(view);