From 51673ebdf4d9ba45c904a2dffcb0b38689a96656 Mon Sep 17 00:00:00 2001 From: tibbi Date: Sat, 3 Aug 2019 18:17:12 +0200 Subject: [PATCH] do not allow clicking file thumbnails, when activity is finishing --- .../simplemobiletools/gallery/pro/activities/MediaActivity.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/pro/activities/MediaActivity.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/pro/activities/MediaActivity.kt index 16de5f6fb..1ed780653 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/pro/activities/MediaActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/pro/activities/MediaActivity.kt @@ -381,7 +381,7 @@ class MediaActivity : SimpleActivity(), MediaOperationsListener { val fastscroller = if (config.scrollHorizontally) media_horizontal_fastscroller else media_vertical_fastscroller MediaAdapter(this, mMedia.clone() as ArrayList, this, mIsGetImageIntent || mIsGetVideoIntent || mIsGetAnyIntent, mAllowPickingMultiple, mPath, media_grid, fastscroller) { - if (it is Medium) { + if (it is Medium && !isFinishing) { itemClicked(it.path) } }.apply {