From 33af23878adab78dc9fcff7bee4e46dc538e9648 Mon Sep 17 00:00:00 2001 From: tibbi Date: Sun, 11 Dec 2016 22:34:55 +0100 Subject: [PATCH] lets define File type too --- .../simplemobiletools/gallery/dialogs/RenameDirectoryDialog.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/dialogs/RenameDirectoryDialog.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/dialogs/RenameDirectoryDialog.kt index 916d4590a..783aaf46e 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/dialogs/RenameDirectoryDialog.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/dialogs/RenameDirectoryDialog.kt @@ -69,7 +69,7 @@ class RenameDirectoryDialog(val activity: SimpleActivity, val dir: File, val cal private fun sendSuccess(updatedFiles: ArrayList, newDir: File) { activity.toast(R.string.renaming_folder) - val files = if (newDir.isDirectory) newDir.listFiles() else arrayOf() + val files = if (newDir.isDirectory) newDir.listFiles() else arrayOf() files.mapTo(updatedFiles) { it.absolutePath } updatedFiles.add(newDir.absolutePath)