mirror of
https://github.com/SimpleMobileTools/Simple-File-Manager.git
synced 2025-01-27 08:51:18 +01:00
fix #195, show the amount of items being deleted at the confirmation dialog
This commit is contained in:
parent
b0b3dca249
commit
c17b7e885c
@ -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…
x
Reference in New Issue
Block a user