change CachePolicy for replace to WRITE_ONLY

this seems to avoid that on a second load without to use replace, an old image from cache is loaded

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

View File

@ -103,7 +103,7 @@ private fun ImageView.loadAvatarInternal(
): io.reactivex.disposables
.Disposable {
val cachePolicy = if (replace) {
CachePolicy.DISABLED
CachePolicy.WRITE_ONLY
} else {
CachePolicy.ENABLED
}