From f03dc76a98aa5d74fab09816644a85a80441c5e2 Mon Sep 17 00:00:00 2001 From: Scott Jackson Date: Thu, 13 Dec 2012 20:11:25 -0800 Subject: Fix this last commit --- subsonic-android/src/github/daneren2005/dsub/util/ImageLoader.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'subsonic-android/src') diff --git a/subsonic-android/src/github/daneren2005/dsub/util/ImageLoader.java b/subsonic-android/src/github/daneren2005/dsub/util/ImageLoader.java index dcf4b389..03f66c3e 100644 --- a/subsonic-android/src/github/daneren2005/dsub/util/ImageLoader.java +++ b/subsonic-android/src/github/daneren2005/dsub/util/ImageLoader.java @@ -147,10 +147,11 @@ public class ImageLoader implements Runnable { Drawable existingDrawable = imageView.getDrawable(); if (existingDrawable == null) { + Bitmap emptyImage; if(drawable.getIntrinsicWidth() > 0 && drawable.getIntrinsicHeight() > 0) { - Bitmap emptyImage = Bitmap.createBitmap(drawable.getIntrinsicWidth(), drawable.getIntrinsicHeight(), Bitmap.Config.ARGB_8888); + emptyImage = Bitmap.createBitmap(drawable.getIntrinsicWidth(), drawable.getIntrinsicHeight(), Bitmap.Config.ARGB_8888); } else { - Bitmap emptyImage = Bitmap.createBitmap(imageSizeDefault, imageSizeDefault, Bitmap.Config.ARGB_8888); + emptyImage = Bitmap.createBitmap(imageSizeDefault, imageSizeDefault, Bitmap.Config.ARGB_8888); } existingDrawable = new BitmapDrawable(emptyImage); } -- cgit v1.2.3