fix #195, show the amount of items being deleted at the confirmation dialog
This commit is contained in:
parent
b0b3dca249
commit
c17b7e885c
1 changed files with 3 additions and 1 deletions
|
@ -423,7 +423,9 @@ class ItemsAdapter(activity: SimpleActivity, var fileDirItems: MutableList<FileD
|
|||
}
|
||||
|
||||
private fun askConfirmDelete() {
|
||||
ConfirmationDialog(activity) {
|
||||
val items = resources.getQuantityString(R.plurals.delete_items, selectedPositions.size, selectedPositions.size)
|
||||
val question = String.format(resources.getString(R.string.deletion_confirmation), items)
|
||||
ConfirmationDialog(activity, question) {
|
||||
deleteFiles()
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue