diff --git a/app/src/main/java/org/thoughtcrime/securesms/DeleteMediaDialog.kt b/app/src/main/java/org/thoughtcrime/securesms/DeleteMediaDialog.kt index a27decddd1..77b77f863e 100644 --- a/app/src/main/java/org/thoughtcrime/securesms/DeleteMediaDialog.kt +++ b/app/src/main/java/org/thoughtcrime/securesms/DeleteMediaDialog.kt @@ -8,7 +8,7 @@ class DeleteMediaDialog { @JvmStatic fun show(context: Context, recordCount: Int, doDelete: Runnable) = context.showSessionDialog { iconAttribute(R.attr.dialog_alert_icon) - title(context.resources.getQuantityString(R.plurals.deleteMessage, recordCount)) + title(context.resources.getQuantityString(R.plurals.deleteMessage, recordCount, recordCount)) text(context.resources.getString(R.string.deleteMessageDescriptionEveryone)) button(R.string.delete) { doDelete.run() } cancelButton() diff --git a/app/src/main/java/org/thoughtcrime/securesms/DeleteMediaPreviewDialog.kt b/app/src/main/java/org/thoughtcrime/securesms/DeleteMediaPreviewDialog.kt index 2b981d6bcc..b8aad6c22a 100644 --- a/app/src/main/java/org/thoughtcrime/securesms/DeleteMediaPreviewDialog.kt +++ b/app/src/main/java/org/thoughtcrime/securesms/DeleteMediaPreviewDialog.kt @@ -9,8 +9,7 @@ class DeleteMediaPreviewDialog { fun show(context: Context, doDelete: Runnable) { context.showSessionDialog { iconAttribute(R.attr.dialog_alert_icon) - title(context.resources.getQuantityString(R.plurals.deleteMessage, 1)) - + title(context.resources.getQuantityString(R.plurals.deleteMessage, 1, 1)) text(R.string.deleteMessageDescriptionEveryone) dangerButton(R.string.delete) { doDelete.run() } cancelButton() diff --git a/app/src/main/java/org/thoughtcrime/securesms/conversation/v2/ConversationActivityV2.kt b/app/src/main/java/org/thoughtcrime/securesms/conversation/v2/ConversationActivityV2.kt index fdd3f7d8b9..51ca3bf685 100644 --- a/app/src/main/java/org/thoughtcrime/securesms/conversation/v2/ConversationActivityV2.kt +++ b/app/src/main/java/org/thoughtcrime/securesms/conversation/v2/ConversationActivityV2.kt @@ -2060,7 +2060,7 @@ class ConversationActivityV2 : PassphraseRequiredActionBarActivity(), InputBarDe private fun showDeleteLocallyUI(messages: Set) { showSessionDialog { - title(resources.getQuantityString(R.plurals.deleteMessage, messages.count())) + title(resources.getQuantityString(R.plurals.deleteMessage, messages.count(), messages.count())) text(resources.getString(R.string.deleteMessagesDescriptionDevice)) button(R.string.delete) { messages.forEach(viewModel::deleteLocally); endActionMode() } cancelButton(::endActionMode) @@ -2082,7 +2082,7 @@ class ConversationActivityV2 : PassphraseRequiredActionBarActivity(), InputBarDe // If the recipient is a community OR a Note-to-Self then we delete the message for everyone if (recipient.isCommunityRecipient || recipient.isLocalNumber) { showSessionDialog { - title(resources.getQuantityString(R.plurals.deleteMessage, messages.count())) + title(resources.getQuantityString(R.plurals.deleteMessage, messages.count(), messages.count())) text(resources.getString(R.string.deleteMessageDescriptionEveryone)) button(R.string.delete) { messages.forEach(viewModel::deleteForEveryone); endActionMode() } cancelButton { endActionMode() } @@ -2110,7 +2110,7 @@ class ConversationActivityV2 : PassphraseRequiredActionBarActivity(), InputBarDe else // Finally, if this is a closed group and you are deleting someone else's message(s) then we can only delete locally. { showSessionDialog { - title(resources.getQuantityString(R.plurals.deleteMessage, messages.count())) + title(resources.getQuantityString(R.plurals.deleteMessage, messages.count(), messages.count())) text(resources.getString(R.string.deleteMessageDescriptionDevice)) dangerButton(R.string.delete) { messages.forEach(viewModel::deleteLocally); endActionMode() } cancelButton(::endActionMode) diff --git a/app/src/main/java/org/thoughtcrime/securesms/conversation/v2/messages/DeletedMessageView.kt b/app/src/main/java/org/thoughtcrime/securesms/conversation/v2/messages/DeletedMessageView.kt index 645a5e2f3b..5b64df059e 100644 --- a/app/src/main/java/org/thoughtcrime/securesms/conversation/v2/messages/DeletedMessageView.kt +++ b/app/src/main/java/org/thoughtcrime/securesms/conversation/v2/messages/DeletedMessageView.kt @@ -21,7 +21,7 @@ class DeletedMessageView : LinearLayout { // region Updating fun bind(message: MessageRecord, @ColorInt textColor: Int) { assert(message.isDeleted) - binding.deleteTitleTextView.text = context.resources.getQuantityString(R.plurals.deleteMessageDeleted, 1) + binding.deleteTitleTextView.text = context.resources.getQuantityString(R.plurals.deleteMessageDeleted, 1, 1) binding.deleteTitleTextView.setTextColor(textColor) binding.deletedMessageViewIconImageView.imageTintList = ColorStateList.valueOf(textColor) }