mirror of
https://github.com/FossifyOrg/Gallery.git
synced 2025-01-18 22:37:59 +01:00
refresh the folders list after copy too
This commit is contained in:
parent
03d53a8436
commit
af970a459c
1 changed files with 1 additions and 1 deletions
|
@ -161,11 +161,11 @@ class DirectoryAdapter(val activity: SimpleActivity, val dirs: MutableList<Direc
|
||||||
CopyDialog(activity, files, object : CopyMoveTask.CopyMoveListener {
|
CopyDialog(activity, files, object : CopyMoveTask.CopyMoveListener {
|
||||||
override fun copySucceeded(deleted: Boolean, copiedAll: Boolean) {
|
override fun copySucceeded(deleted: Boolean, copiedAll: Boolean) {
|
||||||
if (deleted) {
|
if (deleted) {
|
||||||
listener?.refreshItems()
|
|
||||||
activity.toast(if (copiedAll) R.string.moving_success else R.string.moving_success_partial)
|
activity.toast(if (copiedAll) R.string.moving_success else R.string.moving_success_partial)
|
||||||
} else {
|
} else {
|
||||||
activity.toast(if (copiedAll) R.string.copying_success else R.string.copying_success_partial)
|
activity.toast(if (copiedAll) R.string.copying_success else R.string.copying_success_partial)
|
||||||
}
|
}
|
||||||
|
listener?.refreshItems()
|
||||||
actMode?.finish()
|
actMode?.finish()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue