diff options
author | Scott Jackson <daneren2005@gmail.com> | 2012-12-13 20:11:25 -0800 |
---|---|---|
committer | Scott Jackson <daneren2005@gmail.com> | 2012-12-13 20:11:25 -0800 |
commit | f03dc76a98aa5d74fab09816644a85a80441c5e2 (patch) | |
tree | 1f737b5c93d79b82ff480564be1c40c29528ceb8 /subsonic-android/src | |
parent | ed267b5ec56c6a07fe51cc59326fb3d2d1c33585 (diff) | |
download | dsub-f03dc76a98aa5d74fab09816644a85a80441c5e2.tar.gz dsub-f03dc76a98aa5d74fab09816644a85a80441c5e2.tar.bz2 dsub-f03dc76a98aa5d74fab09816644a85a80441c5e2.zip |
Fix this last commit
Diffstat (limited to 'subsonic-android/src')
-rw-r--r-- | subsonic-android/src/github/daneren2005/dsub/util/ImageLoader.java | 5 |
1 files changed, 3 insertions, 2 deletions
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); } |