commit | 01d96bd2afdcff866e0e1010eb7c88e101d0f6fa | [log] [tgz] |
---|---|---|
author | Jean-Michel Trivi <jmtrivi@google.com> | Mon Sep 19 11:17:02 2011 -0700 |
committer | Jean-Michel Trivi <jmtrivi@google.com> | Mon Sep 19 11:17:02 2011 -0700 |
tree | 85f1a763cc971486ba237a18f8df1acfa9b8b946 | |
parent | 2f153169594249738d63aa6e2897d257f6b7d71e [diff] |
Fix bug 5300223 Lockscreen should recycle bitmaps When receiving a new bitmap to display, the lockscreen should recycle the old bitmap (if any). Change-Id: Ic4f65a797dfe7e3cae7a0559f6333cc99e2ae1e7
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); }