소스 검색

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>
Marcel Hibbe 2 년 전
부모
커밋
6b98a19294
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      app/src/main/java/com/nextcloud/talk/extensions/ImageViewExtensions.kt

+ 1 - 1
app/src/main/java/com/nextcloud/talk/extensions/ImageViewExtensions.kt

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