diff options
author | Scott Jackson <daneren2005@gmail.com> | 2015-03-28 11:08:21 -0700 |
---|---|---|
committer | Scott Jackson <daneren2005@gmail.com> | 2015-03-28 11:08:21 -0700 |
commit | 60ffea0878eabad526ec844c908a57c7d6e44558 (patch) | |
tree | bca1e82871bfac4130ad60ac913a1630d0720a98 | |
parent | 8a940c3792d9eae3f666f34803abb1113f6db061 (diff) | |
download | dsub-60ffea0878eabad526ec844c908a57c7d6e44558.tar.gz dsub-60ffea0878eabad526ec844c908a57c7d6e44558.tar.bz2 dsub-60ffea0878eabad526ec844c908a57c7d6e44558.zip |
Fix crash on failing to load artist image
-rw-r--r-- | src/github/daneren2005/dsub/util/ImageLoader.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/github/daneren2005/dsub/util/ImageLoader.java b/src/github/daneren2005/dsub/util/ImageLoader.java index b4bad6e7..ce2035d4 100644 --- a/src/github/daneren2005/dsub/util/ImageLoader.java +++ b/src/github/daneren2005/dsub/util/ImageLoader.java @@ -300,7 +300,7 @@ public class ImageLoader { textView.setCompoundDrawablesWithIntrinsicBounds(drawable, null, null, null); } else if (view instanceof ImageView) { final ImageView imageView = (ImageView) view; - if (crossfade) { + if (crossfade && drawable != null) { Drawable existingDrawable = imageView.getDrawable(); if (existingDrawable == null) { Bitmap emptyImage; |