From 24756285ccec3fafcc8c62629acfd0963f33ca28 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ensar=20Saraj=C4=8Di=C4=87?= Date: Tue, 25 Jul 2023 14:54:32 +0200 Subject: [PATCH] Use recycle bin string for deletion when recycle bin is active --- .../smsmessenger/adapters/ThreadAdapter.kt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/smsmessenger/adapters/ThreadAdapter.kt b/app/src/main/kotlin/com/simplemobiletools/smsmessenger/adapters/ThreadAdapter.kt index cf311db0..67fae1e3 100644 --- a/app/src/main/kotlin/com/simplemobiletools/smsmessenger/adapters/ThreadAdapter.kt +++ b/app/src/main/kotlin/com/simplemobiletools/smsmessenger/adapters/ThreadAdapter.kt @@ -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 ->