show a toast at deleting folders

This commit is contained in:
tibbi 2018-07-01 21:03:38 +02:00
parent 7235aa8ac8
commit 535e1d8ec9
1 changed files with 4 additions and 0 deletions

View File

@ -403,6 +403,10 @@ class MainActivity : SimpleActivity(), DirectoryOperationsListener {
override fun deleteFolders(folders: ArrayList<File>) {
val fileDirItems = folders.map { FileDirItem(it.absolutePath, it.name, true) } as ArrayList<FileDirItem>
fileDirItems.forEach {
toast(String.format(getString(R.string.deleting_folder), it.name), Toast.LENGTH_LONG)
}
if (config.useRecycleBin) {
val pathsToDelete = ArrayList<String>()
fileDirItems.filter { it.isDirectory }.forEach {