From 3b14330b5d8c304719a56beab6eb2b0ec66003d8 Mon Sep 17 00:00:00 2001 From: tibbi Date: Thu, 22 Mar 2018 14:10:38 +0100 Subject: [PATCH] temporarily comment out deleting of newly created folders --- .../com/simplemobiletools/gallery/activities/MainActivity.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 7127391c5..1ca189290 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/activities/MainActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/activities/MainActivity.kt @@ -238,12 +238,12 @@ class MainActivity : SimpleActivity(), DirectoryAdapter.DirOperationsListener { private fun removeTempFolder() { if (config.tempFolderPath.isNotEmpty()) { - val newFolder = File(config.tempFolderPath) + /*val newFolder = File(config.tempFolderPath) if (newFolder.exists() && newFolder.isDirectory) { if (newFolder.list()?.isEmpty() == true) { deleteFile(newFolder.toFileDirItem(applicationContext), true) } - } + }*/ config.tempFolderPath = "" } }