1
0
mirror of https://github.com/tuskyapp/Tusky synced 2024-12-25 16:23:29 +01:00

add avatar placeholders back in (#1285)

This commit is contained in:
Konrad Pozniak 2019-05-26 10:06:22 +02:00 committed by GitHub
parent 83696b5c7f
commit 9690cd5730
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -26,6 +26,7 @@ fun loadAvatar(url: String?, imageView: ImageView, @Px radius: Int, animate: Boo
fitCenterTransformation,
RoundedCorners(radius)
)
.placeholder(R.drawable.avatar_default)
.into(imageView)
} else {
@ -36,6 +37,7 @@ fun loadAvatar(url: String?, imageView: ImageView, @Px radius: Int, animate: Boo
fitCenterTransformation,
RoundedCorners(radius)
)
.placeholder(R.drawable.avatar_default)
.into(imageView)
}