show the Recycle Bin literally when deleting that 1 folder
This commit is contained in:
parent
afa29ec5b1
commit
f4bcae8086
|
@ -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)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue