mirror of
https://github.com/FossifyOrg/Gallery.git
synced 2024-11-26 14:37:59 +01:00
simplify sendsuccess at renaming dir
This commit is contained in:
parent
06f7d8d29d
commit
83dc85e63b
1 changed files with 1 additions and 3 deletions
|
@ -67,9 +67,7 @@ class RenameDirectoryDialog(val activity: SimpleActivity, val dir: File, val lis
|
||||||
private fun sendSuccess(updatedFiles: ArrayList<String>, newDir: File) {
|
private fun sendSuccess(updatedFiles: ArrayList<String>, newDir: File) {
|
||||||
context.toast(R.string.renaming_folder)
|
context.toast(R.string.renaming_folder)
|
||||||
val files = newDir.listFiles()
|
val files = newDir.listFiles()
|
||||||
for (file in files) {
|
files.mapTo(updatedFiles) { it.absolutePath }
|
||||||
updatedFiles.add(file.absolutePath)
|
|
||||||
}
|
|
||||||
|
|
||||||
updatedFiles.add(newDir.absolutePath)
|
updatedFiles.add(newDir.absolutePath)
|
||||||
listener.onRenameDirSuccess(updatedFiles)
|
listener.onRenameDirSuccess(updatedFiles)
|
||||||
|
|
Loading…
Reference in a new issue