From 535e1d8ec9272f761c1dd8cdcdbe4e0583bc84d2 Mon Sep 17 00:00:00 2001 From: tibbi Date: Sun, 1 Jul 2018 21:03:38 +0200 Subject: [PATCH] show a toast at deleting folders --- .../com/simplemobiletools/gallery/activities/MainActivity.kt | 4 ++++ 1 file changed, 4 insertions(+) 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 0ed9b044e..fdb1259e4 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/activities/MainActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/activities/MainActivity.kt @@ -403,6 +403,10 @@ class MainActivity : SimpleActivity(), DirectoryOperationsListener { override fun deleteFolders(folders: ArrayList) { val fileDirItems = folders.map { FileDirItem(it.absolutePath, it.name, true) } as ArrayList + fileDirItems.forEach { + toast(String.format(getString(R.string.deleting_folder), it.name), Toast.LENGTH_LONG) + } + if (config.useRecycleBin) { val pathsToDelete = ArrayList() fileDirItems.filter { it.isDirectory }.forEach {