create a new bitmap copy at every filter
This commit is contained in:
parent
8c116f6c16
commit
efa93ef1a3
|
@ -1,5 +1,6 @@
|
||||||
package com.simplemobiletools.gallery.helpers
|
package com.simplemobiletools.gallery.helpers
|
||||||
|
|
||||||
|
import android.graphics.Bitmap
|
||||||
import com.simplemobiletools.gallery.models.FilterItem
|
import com.simplemobiletools.gallery.models.FilterItem
|
||||||
import java.util.*
|
import java.util.*
|
||||||
|
|
||||||
|
@ -13,7 +14,7 @@ object FilterThumbnailsManager {
|
||||||
|
|
||||||
fun processThumbs(): ArrayList<FilterItem> {
|
fun processThumbs(): ArrayList<FilterItem> {
|
||||||
for (filterItem in filterThumbnails) {
|
for (filterItem in filterThumbnails) {
|
||||||
filterItem.bitmap = filterItem.filter.processFilter(filterItem.bitmap)
|
filterItem.bitmap = filterItem.filter.processFilter(Bitmap.createBitmap(filterItem.bitmap))
|
||||||
processedThumbnails.add(filterItem)
|
processedThumbnails.add(filterItem)
|
||||||
}
|
}
|
||||||
return processedThumbnails
|
return processedThumbnails
|
||||||
|
|
Loading…
Reference in New Issue