am 6c038506: Merge "Fix bug 5300223 Lockscreen should recycle bitmaps" into ics-factoryrom
* commit '6c03850616a6e87de3e1943e47605cc5ebb20e2b': Fix bug 5300223 Lockscreen should recycle bitmaps
This commit is contained in:
@@ -102,6 +102,9 @@ public class TransportControlView extends FrameLayout implements OnClickListener
|
|||||||
|
|
||||||
case MSG_SET_ARTWORK:
|
case MSG_SET_ARTWORK:
|
||||||
if (mClientGeneration == msg.arg1) {
|
if (mClientGeneration == msg.arg1) {
|
||||||
|
if (mMetadata.bitmap != null) {
|
||||||
|
mMetadata.bitmap.recycle();
|
||||||
|
}
|
||||||
mMetadata.bitmap = (Bitmap) msg.obj;
|
mMetadata.bitmap = (Bitmap) msg.obj;
|
||||||
mAlbumArt.setImageBitmap(mMetadata.bitmap);
|
mAlbumArt.setImageBitmap(mMetadata.bitmap);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user