From 7658651ebfdbbdde056869e9941a18fcb558cdab Mon Sep 17 00:00:00 2001 From: tibbi Date: Sat, 19 Nov 2016 22:12:27 +0100 Subject: [PATCH] remove an isphotovideo check --- .../com/simplemobiletools/gallery/activities/MainActivity.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/activities/MainActivity.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/activities/MainActivity.kt index 63b84ebdf..1430d9166 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/activities/MainActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/activities/MainActivity.kt @@ -184,7 +184,7 @@ class MainActivity : SimpleActivity(), GetDirectoriesAsynctask.GetDirectoriesLis for (delPath in mToBeDeleted) { val dir = File(delPath) if (dir.exists()) { - val files = dir.listFiles().filter(File::isPhotoVideo) + val files = dir.listFiles() files.forEach { if (it.isFile && it.isPhotoVideo()) { updatedFiles.add(it)