File tree 1 file changed +4
-2
lines changed
app/src/main/java/github/daneren2005/dsub/util
1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -640,7 +640,7 @@ private class AvatarTask extends SilentBackgroundTask<Void> {
640
640
private final ImageView mView ;
641
641
private Drawable mDrawable ;
642
642
643
- public AvatarTask (Context context , ImageView view , String username ) {
643
+ private AvatarTask (Context context , ImageView view , String username ) {
644
644
super (context );
645
645
mContext = context ;
646
646
mView = view ;
@@ -659,8 +659,10 @@ protected Void doInBackground() throws Throwable {
659
659
660
660
mDrawable = Util .createDrawableFromBitmap (mContext , bitmap );
661
661
}
662
+ } catch (java .io .FileNotFoundException x ) {
663
+ Log .i (TAG , "Avatar not available for download." );
662
664
} catch (Throwable x ) {
663
- Log .e (TAG , "Failed to download album art ." , x );
665
+ Log .e (TAG , "Failed to download avatar ." , x );
664
666
}
665
667
666
668
return null ;
You can’t perform that action at this time.
0 commit comments