From efa93ef1a38d64dfffb2d4e27ae4f526c8ecf78e Mon Sep 17 00:00:00 2001 From: tibbi Date: Fri, 20 Jul 2018 11:43:27 +0200 Subject: [PATCH] create a new bitmap copy at every filter --- .../gallery/helpers/FilterThumbnailsManager.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/helpers/FilterThumbnailsManager.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/helpers/FilterThumbnailsManager.kt index f9d833280..6ee92ae44 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/helpers/FilterThumbnailsManager.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/helpers/FilterThumbnailsManager.kt @@ -1,5 +1,6 @@ package com.simplemobiletools.gallery.helpers +import android.graphics.Bitmap import com.simplemobiletools.gallery.models.FilterItem import java.util.* @@ -13,7 +14,7 @@ object FilterThumbnailsManager { fun processThumbs(): ArrayList { for (filterItem in filterThumbnails) { - filterItem.bitmap = filterItem.filter.processFilter(filterItem.bitmap) + filterItem.bitmap = filterItem.filter.processFilter(Bitmap.createBitmap(filterItem.bitmap)) processedThumbnails.add(filterItem) } return processedThumbnails