Skip to content

Commit dede707

Browse files
jmtriviAndroid Git Automerger
authored andcommitted
am 6c03850: Merge "Fix bug 5300223 Lockscreen should recycle bitmaps" into ics-factoryrom
* commit '6c03850616a6e87de3e1943e47605cc5ebb20e2b': Fix bug 5300223 Lockscreen should recycle bitmaps
2 parents 50f95b4 + 6c03850 commit dede707

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

core/java/com/android/internal/widget/TransportControlView.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,9 @@ public void handleMessage(Message msg) {
102102

103103
case MSG_SET_ARTWORK:
104104
if (mClientGeneration == msg.arg1) {
105+
if (mMetadata.bitmap != null) {
106+
mMetadata.bitmap.recycle();
107+
}
105108
mMetadata.bitmap = (Bitmap) msg.obj;
106109
mAlbumArt.setImageBitmap(mMetadata.bitmap);
107110
}

0 commit comments

Comments
 (0)