Kill animations for Avatar glide requests.
This commit is contained in:
parent
ecc43f1dea
commit
915d56ac15
1 changed files with 2 additions and 0 deletions
|
@ -225,6 +225,7 @@ public final class AvatarImageView extends AppCompatImageView {
|
|||
blurred = shouldBlur;
|
||||
|
||||
GlideRequest<Drawable> request = requestManager.load(photo.contactPhoto)
|
||||
.dontAnimate()
|
||||
.fallback(fallbackContactPhotoDrawable)
|
||||
.error(fallbackContactPhotoDrawable)
|
||||
.diskCacheStrategy(DiskCacheStrategy.ALL)
|
||||
|
@ -290,6 +291,7 @@ public final class AvatarImageView extends AppCompatImageView {
|
|||
|
||||
GlideApp.with(this)
|
||||
.load(avatarBytes)
|
||||
.dontAnimate()
|
||||
.fallback(fallback)
|
||||
.error(fallback)
|
||||
.diskCacheStrategy(DiskCacheStrategy.ALL)
|
||||
|
|
Loading…
Add table
Reference in a new issue