this fixes the background color that is set behind github icon when there is no image in avatar layout.

This commit is contained in:
Kosh 2017-03-08 21:24:56 +08:00
parent 5b697ba649
commit 608e7f1ae9

View File

@ -85,6 +85,7 @@ public class AvatarLayout extends FrameLayout implements ImageLoadingListener {
@Override public void onLoadingFailed(String imageUri, View view, FailReason failReason) {
avatar.setImageResource(R.drawable.ic_github_black);
setBackgroundColor(Color.TRANSPARENT);
}
@Override public void onLoadingComplete(String imageUri, View view, Bitmap loadedImage) {