mirror of
https://github.com/FossifyOrg/Gallery.git
synced 2024-11-26 14:37:59 +01:00
create a new bitmap copy at every filter
This commit is contained in:
parent
8c116f6c16
commit
efa93ef1a3
1 changed files with 2 additions and 1 deletions
|
@ -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<FilterItem> {
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue