do not allow clicking file thumbnails, when activity is finishing

This commit is contained in:
tibbi 2019-08-03 18:17:12 +02:00
parent 2506f1579e
commit 51673ebdf4

View file

@ -381,7 +381,7 @@ class MediaActivity : SimpleActivity(), MediaOperationsListener {
val fastscroller = if (config.scrollHorizontally) media_horizontal_fastscroller else media_vertical_fastscroller val fastscroller = if (config.scrollHorizontally) media_horizontal_fastscroller else media_vertical_fastscroller
MediaAdapter(this, mMedia.clone() as ArrayList<ThumbnailItem>, this, mIsGetImageIntent || mIsGetVideoIntent || mIsGetAnyIntent, MediaAdapter(this, mMedia.clone() as ArrayList<ThumbnailItem>, this, mIsGetImageIntent || mIsGetVideoIntent || mIsGetAnyIntent,
mAllowPickingMultiple, mPath, media_grid, fastscroller) { mAllowPickingMultiple, mPath, media_grid, fastscroller) {
if (it is Medium) { if (it is Medium && !isFinishing) {
itemClicked(it.path) itemClicked(it.path)
} }
}.apply { }.apply {