mirror of
https://github.com/SimpleMobileTools/Simple-File-Manager.git
synced 2025-04-16 03:07:26 +02: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() {
|
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()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user