From 441c491892f9492ea0d9494fc0ad6e450337454f Mon Sep 17 00:00:00 2001 From: Axel Laffite Date: Fri, 25 Sep 2020 09:25:49 +0200 Subject: [PATCH] refactor: holder isn't recyclable anymore --- .../src/main/java/com/axellaffite/fastgallery/ImageViewPager.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/FastGallery/src/main/java/com/axellaffite/fastgallery/ImageViewPager.kt b/FastGallery/src/main/java/com/axellaffite/fastgallery/ImageViewPager.kt index 6cd3cfd..1226d35 100644 --- a/FastGallery/src/main/java/com/axellaffite/fastgallery/ImageViewPager.kt +++ b/FastGallery/src/main/java/com/axellaffite/fastgallery/ImageViewPager.kt @@ -49,6 +49,8 @@ class ImageViewPager(var images: List, private val converter: (Ima } + holder.setIsRecyclable(false) + Picasso .get() .load(converter(images[position]))