fix some issues at Moving files

This commit is contained in:
tibbi 2016-12-05 23:46:55 +01:00
parent b6a5d50a6d
commit 2b8d644388

View file

@ -90,10 +90,11 @@ class CopyDialog(val activity: SimpleActivity, val files: ArrayList<File>, val c
if (file.renameTo(destination)) if (file.renameTo(destination))
updatedFiles.add(destination) updatedFiles.add(destination)
} }
context.scanFiles(updatedFiles) { context.scanFiles(updatedFiles) {
dismiss() activity.runOnUiThread {
copyMoveListener.copySucceeded(true, files.size * 2 == updatedFiles.size) copyMoveListener.copySucceeded(true, files.size * 2 == updatedFiles.size)
dismiss()
}
} }
} }
} }