From fa5a5651ad09c5ccce303ece7d305dd8b3db5780 Mon Sep 17 00:00:00 2001 From: tibbi Date: Fri, 26 May 2017 15:41:24 +0200 Subject: [PATCH] remove a file validity check at deleting from thumbnails view --- .../com/simplemobiletools/gallery/activities/MediaActivity.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/activities/MediaActivity.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/activities/MediaActivity.kt index f76074a7a..5d1527b28 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/activities/MediaActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/activities/MediaActivity.kt @@ -405,7 +405,7 @@ class MediaActivity : SimpleActivity(), MediaAdapter.MediaOperationsListener { } override fun deleteFiles(files: ArrayList) { - val filtered = files.filter { it.exists() && it.isImageVideoGif() } as ArrayList + val filtered = files.filter { it.isImageVideoGif() } as ArrayList deleteFiles(filtered) { if (!it) { toast(R.string.unknown_error_occurred)