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);