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
1 changed files with 1 additions and 1 deletions

View File

@ -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<ThumbnailItem>, this, mIsGetImageIntent || mIsGetVideoIntent || mIsGetAnyIntent,
mAllowPickingMultiple, mPath, media_grid, fastscroller) {
if (it is Medium) {
if (it is Medium && !isFinishing) {
itemClicked(it.path)
}
}.apply {