mirror of
https://github.com/FossifyOrg/Gallery.git
synced 2024-11-26 22:47:59 +01:00
fix some issues at Moving files
This commit is contained in:
parent
b6a5d50a6d
commit
2b8d644388
1 changed files with 4 additions and 3 deletions
|
@ -90,10 +90,11 @@ class CopyDialog(val activity: SimpleActivity, val files: ArrayList<File>, val c
|
|||
if (file.renameTo(destination))
|
||||
updatedFiles.add(destination)
|
||||
}
|
||||
|
||||
context.scanFiles(updatedFiles) {
|
||||
dismiss()
|
||||
copyMoveListener.copySucceeded(true, files.size * 2 == updatedFiles.size)
|
||||
activity.runOnUiThread {
|
||||
copyMoveListener.copySucceeded(true, files.size * 2 == updatedFiles.size)
|
||||
dismiss()
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue