Use recycle bin string for deletion when recycle bin is active

This commit is contained in:
Ensar Sarajčić 2023-07-25 14:54:32 +02:00
parent 3cb3e24e2c
commit 24756285cc
1 changed files with 5 additions and 1 deletions

View File

@ -207,7 +207,11 @@ class ThreadAdapter(
return
}
val baseString = R.string.deletion_confirmation
val baseString = if (activity.config.useRecycleBin && !isRecycleBin) {
R.string.move_to_recycle_bin_confirmation
} else {
R.string.deletion_confirmation
}
val question = String.format(resources.getString(baseString), items)
DeleteConfirmationDialog(activity, question, activity.config.useRecycleBin && !isRecycleBin) { skipRecycleBin ->