From f5c32d0a82ad15b845b1b0a71f29d2195c11b0d0 Mon Sep 17 00:00:00 2001 From: tibbi Date: Tue, 8 Jan 2019 13:38:23 +0100 Subject: [PATCH] splitting some Glide code at the editor on multiple lines --- .../gallery/pro/activities/EditActivity.kt | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/pro/activities/EditActivity.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/pro/activities/EditActivity.kt index 3d71b443b..8406b8a83 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/pro/activities/EditActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/pro/activities/EditActivity.kt @@ -384,7 +384,12 @@ class EditActivity : SimpleActivity(), CropImageView.OnCropImageCompleteListener if (currPrimaryAction == PRIMARY_ACTION_FILTER && bottom_actions_filter_list.adapter == null) { Thread { val thumbnailSize = resources.getDimension(R.dimen.bottom_filters_thumbnail_size).toInt() - val bitmap = Glide.with(this).asBitmap().load(uri).submit(thumbnailSize, thumbnailSize).get() + val bitmap = Glide.with(this) + .asBitmap() + .load(uri) + .submit(thumbnailSize, thumbnailSize) + .get() + runOnUiThread { val filterThumbnailsManager = FilterThumbnailsManager() filterThumbnailsManager.clearThumbs()