commit | 6c03850616a6e87de3e1943e47605cc5ebb20e2b | [log] [tgz] |
---|---|---|
author | Jean-Michel Trivi <jmtrivi@google.com> | Mon Sep 19 15:37:23 2011 -0700 |
committer | Android (Google) Code Review <android-gerrit@google.com> | Mon Sep 19 15:37:23 2011 -0700 |
tree | 065c8befb64e43838475260c37988ae0648d1abd | |
parent | c69396973b8a496e298a7076842b0e34d193651e [diff] | |
parent | 01d96bd2afdcff866e0e1010eb7c88e101d0f6fa [diff] |
Merge "Fix bug 5300223 Lockscreen should recycle bitmaps" into ics-factoryrom
diff --git a/core/java/com/android/internal/widget/TransportControlView.java b/core/java/com/android/internal/widget/TransportControlView.java index f9c2cce..1c7ad617 100644 --- a/core/java/com/android/internal/widget/TransportControlView.java +++ b/core/java/com/android/internal/widget/TransportControlView.java
@@ -102,6 +102,9 @@ case MSG_SET_ARTWORK: if (mClientGeneration == msg.arg1) { + if (mMetadata.bitmap != null) { + mMetadata.bitmap.recycle(); + } mMetadata.bitmap = (Bitmap) msg.obj; mAlbumArt.setImageBitmap(mMetadata.bitmap); }