aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@gmail.com>2012-10-28 13:25:06 -0700
committerScott Jackson <daneren2005@gmail.com>2012-10-28 13:25:06 -0700
commit338c0e0482d55e3bd703f26931da835a859cbd9c (patch)
tree0c66397a56e3392ffe2520f53bd9abbcc40cf972
parent6ef221e2f3a7c920b0a61ffb84bf0ae56640c114 (diff)
downloaddsub-338c0e0482d55e3bd703f26931da835a859cbd9c.tar.gz
dsub-338c0e0482d55e3bd703f26931da835a859cbd9c.tar.bz2
dsub-338c0e0482d55e3bd703f26931da835a859cbd9c.zip
Revert previous commit
-rw-r--r--subsonic-android/src/github/daneren2005/dsub/util/ImageLoader.java12
1 files changed, 5 insertions, 7 deletions
diff --git a/subsonic-android/src/github/daneren2005/dsub/util/ImageLoader.java b/subsonic-android/src/github/daneren2005/dsub/util/ImageLoader.java
index 38b54fbc..b1898168 100644
--- a/subsonic-android/src/github/daneren2005/dsub/util/ImageLoader.java
+++ b/subsonic-android/src/github/daneren2005/dsub/util/ImageLoader.java
@@ -63,7 +63,7 @@ public class ImageLoader implements Runnable {
private final BlockingQueue<Task> queue;
private final int imageSizeDefault;
private final int imageSizeLarge;
- private Drawable largeUnknownImage = null;
+ private Drawable largeUnknownImage;
public ImageLoader(Context context) {
queue = new LinkedBlockingQueue<Task>(500);
@@ -81,12 +81,10 @@ public class ImageLoader implements Runnable {
}
private void createLargeUnknownImage(Context context) {
- if(largeUnknownImage == null) {
- BitmapDrawable drawable = (BitmapDrawable) context.getResources().getDrawable(R.drawable.unknown_album_large);
- Bitmap bitmap = Bitmap.createScaledBitmap(drawable.getBitmap(), imageSizeLarge, imageSizeLarge, true);
- bitmap = createReflection(bitmap);
- largeUnknownImage = Util.createDrawableFromBitmap(context, bitmap);
- }
+ BitmapDrawable drawable = (BitmapDrawable) context.getResources().getDrawable(R.drawable.unknown_album_large);
+ Bitmap bitmap = Bitmap.createScaledBitmap(drawable.getBitmap(), imageSizeLarge, imageSizeLarge, true);
+ bitmap = createReflection(bitmap);
+ largeUnknownImage = Util.createDrawableFromBitmap(context, bitmap);
}
public void loadImage(View view, MusicDirectory.Entry entry, boolean large, boolean crossfade) {