aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/java
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@users.noreply.github.com>2018-10-27 09:51:07 -0700
committerGitHub <noreply@github.com>2018-10-27 09:51:07 -0700
commite3e97a1fc61b6573520eb6ba4ed20fc6329b25c3 (patch)
tree171bd916afb2537c36b93b3a5f1af44cb19394fb /app/src/main/java
parent2173bb4f4c95414be6736c3b04207405b571001c (diff)
parent1997f6f5e9cdaa3ab04e65b1dad44b622b0aa77d (diff)
downloaddsub-e3e97a1fc61b6573520eb6ba4ed20fc6329b25c3.tar.gz
dsub-e3e97a1fc61b6573520eb6ba4ed20fc6329b25c3.tar.bz2
dsub-e3e97a1fc61b6573520eb6ba4ed20fc6329b25c3.zip
Merge pull request #905 from vrih/fix/avatar-error
Don't log error if avatar isn't available
Diffstat (limited to 'app/src/main/java')
-rw-r--r--app/src/main/java/github/daneren2005/dsub/util/ImageLoader.java6
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;