remove placeholder for loadAvatarInternal

this looks smoother when loading the avatars (less flickering)
"error" and "fallback" take over if something goes wrong.

Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
This commit is contained in:
Marcel Hibbe 2023-04-27 10:38:45 +02:00
parent 6b98a19294
commit effbd28f5d
No known key found for this signature in database
GPG Key ID: C793F8B59F43CE7B

View File

@ -134,7 +134,6 @@ private fun ImageView.loadAvatarInternal(
)
}
transformations(CircleCropTransformation())
placeholder(placeholder ?: ContextCompat.getDrawable(context, R.drawable.account_circle_96dp))
error(placeholder ?: ContextCompat.getDrawable(context, R.drawable.account_circle_96dp))
fallback(placeholder ?: ContextCompat.getDrawable(context, R.drawable.account_circle_96dp))
listener(onError = { _, result ->