aboutsummaryrefslogtreecommitdiff
path: root/subsonic-android
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@gmail.com>2013-01-14 07:14:51 -0800
committerScott Jackson <daneren2005@gmail.com>2013-01-14 07:14:51 -0800
commit2b7233b40597469ce67af72ee19b766552a35138 (patch)
treef57c4a17c8789f9e66c81297ade46674ea303782 /subsonic-android
parent77bc06eb99edfde27bded5519179d4a0721fb157 (diff)
downloaddsub-2b7233b40597469ce67af72ee19b766552a35138.tar.gz
dsub-2b7233b40597469ce67af72ee19b766552a35138.tar.bz2
dsub-2b7233b40597469ce67af72ee19b766552a35138.zip
Revert c4130b7caa3ac11d4c1b9fdebf8459270a6b3ff1: maybe some still link original bitmap after scaling?
Diffstat (limited to 'subsonic-android')
-rw-r--r--subsonic-android/src/github/daneren2005/dsub/util/FileUtil.java4
1 files changed, 1 insertions, 3 deletions
diff --git a/subsonic-android/src/github/daneren2005/dsub/util/FileUtil.java b/subsonic-android/src/github/daneren2005/dsub/util/FileUtil.java
index d210920b..43eccdf8 100644
--- a/subsonic-android/src/github/daneren2005/dsub/util/FileUtil.java
+++ b/subsonic-android/src/github/daneren2005/dsub/util/FileUtil.java
@@ -102,9 +102,7 @@ public class FileUtil {
File albumArtFile = getAlbumArtFile(context, entry);
if (albumArtFile.exists()) {
Bitmap bitmap = BitmapFactory.decodeFile(albumArtFile.getPath());
- Bitmap scaledBitmap = (bitmap == null) ? null : Bitmap.createScaledBitmap(bitmap, size, size, true);
- bitmap.recycle();
- return scaledBitmap;
+ return (bitmap == null) ? null : Bitmap.createScaledBitmap(bitmap, size, size, true);
}
return null;
}