diff options
author | Daniel Bowman <daniel@danielbowman.co.uk> | 2018-10-27 15:07:39 +0100 |
---|---|---|
committer | Daniel Bowman <daniel@danielbowman.co.uk> | 2018-10-27 15:07:39 +0100 |
commit | 1997f6f5e9cdaa3ab04e65b1dad44b622b0aa77d (patch) | |
tree | db31eb1a77273b1e3191aa9f40e13deb9cd904eb /app/src/main | |
parent | 0a4f6215972d970e69859fa690938ef9f0ea2e0a (diff) | |
download | dsub-1997f6f5e9cdaa3ab04e65b1dad44b622b0aa77d.tar.gz dsub-1997f6f5e9cdaa3ab04e65b1dad44b622b0aa77d.tar.bz2 dsub-1997f6f5e9cdaa3ab04e65b1dad44b622b0aa77d.zip |
Don't log error if avatar isn't available
Diffstat (limited to 'app/src/main')
-rw-r--r-- | app/src/main/java/github/daneren2005/dsub/util/ImageLoader.java | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/app/src/main/java/github/daneren2005/dsub/util/ImageLoader.java b/app/src/main/java/github/daneren2005/dsub/util/ImageLoader.java index 2321e69e..23f48e02 100644 --- a/app/src/main/java/github/daneren2005/dsub/util/ImageLoader.java +++ b/app/src/main/java/github/daneren2005/dsub/util/ImageLoader.java @@ -640,7 +640,7 @@ public class ImageLoader { private final ImageView mView; private Drawable mDrawable; - public AvatarTask(Context context, ImageView view, String username) { + private AvatarTask(Context context, ImageView view, String username) { super(context); mContext = context; mView = view; @@ -659,8 +659,10 @@ public class ImageLoader { mDrawable = Util.createDrawableFromBitmap(mContext, bitmap); } + } catch (java.io.FileNotFoundException x) { + Log.i(TAG, "Avatar not available for download."); } catch (Throwable x) { - Log.e(TAG, "Failed to download album art.", x); + Log.e(TAG, "Failed to download avatar.", x); } return null; |