Merge "Fix bug 5300223 Lockscreen should recycle bitmaps" into ics-factoryrom

This commit is contained in:
Jean-Michel Trivi
2011-09-19 15:37:23 -07:00
committed by Android (Google) Code Review

View File

@@ -102,6 +102,9 @@ public class TransportControlView extends FrameLayout implements OnClickListener
case MSG_SET_ARTWORK:
if (mClientGeneration == msg.arg1) {
if (mMetadata.bitmap != null) {
mMetadata.bitmap.recycle();
}
mMetadata.bitmap = (Bitmap) msg.obj;
mAlbumArt.setImageBitmap(mMetadata.bitmap);
}