Merge "Fix bug 5300223 Lockscreen should recycle bitmaps" into ics-factoryrom
This commit is contained in:
committed by
Android (Google) Code Review
commit
6c03850616
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user