From ee1df9ebbb0d0c2ecb915304c58814aace403043 Mon Sep 17 00:00:00 2001 From: tibbi Date: Tue, 10 Apr 2018 20:36:17 +0200 Subject: [PATCH] reenable new folder deleting, if it was left empty --- .../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 583f9a977..677b1caab 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/activities/MainActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/activities/MainActivity.kt @@ -241,12 +241,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 = "" } }