refresh the folders list after copy too

This commit is contained in:
tibbi 2016-11-17 17:18:14 +01:00
parent 03d53a8436
commit af970a459c

View file

@ -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()
} }