refactor: revert glide cache strategy for separate task

This commit is contained in:
Harris 2021-07-26 15:26:55 +10:00
parent 2becf9fabe
commit 69e10caa10

View File

@ -111,7 +111,7 @@ class ProfilePictureView : RelativeLayout {
val avatar = (signalProfilePicture as? ProfileContactPhoto)?.avatarObject val avatar = (signalProfilePicture as? ProfileContactPhoto)?.avatarObject
if (signalProfilePicture != null && avatar != "0" && avatar != "") { if (signalProfilePicture != null && avatar != "0" && avatar != "") {
glide.clear(imageView) glide.clear(imageView)
glide.load(signalProfilePicture).diskCacheStrategy(DiskCacheStrategy.NONE).circleCrop().into(imageView) glide.load(signalProfilePicture).diskCacheStrategy(DiskCacheStrategy.AUTOMATIC).circleCrop().into(imageView)
profilePicturesCache[publicKey] = recipient.profileAvatar profilePicturesCache[publicKey] = recipient.profileAvatar
} else { } else {
val sizeInPX = resources.getDimensionPixelSize(sizeResId) val sizeInPX = resources.getDimensionPixelSize(sizeResId)