fix #195, show the amount of items being deleted at the confirmation dialog

This commit is contained in:
tibbi 2018-04-15 22:11:49 +02:00
parent b0b3dca249
commit c17b7e885c

View file

@ -423,7 +423,9 @@ class ItemsAdapter(activity: SimpleActivity, var fileDirItems: MutableList<FileD
} }
private fun askConfirmDelete() { 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() deleteFiles()
} }
} }