show the Recycle Bin literally when deleting that 1 folder

This commit is contained in:
tibbi 2019-05-05 18:51:51 +02:00
parent afa29ec5b1
commit f4bcae8086
1 changed files with 5 additions and 1 deletions

View File

@ -349,7 +349,11 @@ class DirectoryAdapter(activity: BaseSimpleActivity, var dirs: ArrayList<Directo
else -> { else -> {
val itemsCnt = selectedKeys.size val itemsCnt = selectedKeys.size
val items = if (itemsCnt == 1) { val items = if (itemsCnt == 1) {
"\"${getSelectedPaths().first().getFilenameFromPath()}\"" var folder = getSelectedPaths().first().getFilenameFromPath()
if (folder == RECYCLE_BIN) {
folder = activity.getString(R.string.recycle_bin)
}
"\"$folder\""
} else { } else {
resources.getQuantityString(R.plurals.delete_items, itemsCnt, itemsCnt) resources.getQuantityString(R.plurals.delete_items, itemsCnt, itemsCnt)
} }