From efa2c9777ebfcbbf860e6e894feb52ac70e9e0d5 Mon Sep 17 00:00:00 2001 From: tibbi Date: Fri, 20 Jul 2018 11:48:56 +0200 Subject: [PATCH] create filter thumbnails just once, not at every filter toggle --- .../com/simplemobiletools/gallery/activities/EditActivity.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/activities/EditActivity.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/activities/EditActivity.kt index 86a6c3fdc..10910fcab 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/activities/EditActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/activities/EditActivity.kt @@ -249,7 +249,7 @@ class EditActivity : SimpleActivity(), CropImageView.OnCropImageCompleteListener bottom_editor_filter_actions.beVisibleIf(currPrimaryAction == PRIMARY_ACTION_FILTER) bottom_editor_crop_rotate_actions.beVisibleIf(currPrimaryAction == PRIMARY_ACTION_CROP_ROTATE) - if (currPrimaryAction == PRIMARY_ACTION_FILTER) { + if (currPrimaryAction == PRIMARY_ACTION_FILTER && bottom_actions_filter_list.adapter == null) { Thread { val size = resources.getDimension(R.dimen.bottom_filters_thumbnail_height).toInt() val bitmap = Glide.with(this).asBitmap().load(uri).submit(size, size).get()