From da0d38f3897c88c2d4cb83f26292e40ec60df0cf Mon Sep 17 00:00:00 2001 From: Morgan Pretty Date: Tue, 14 Feb 2023 16:17:25 +1100 Subject: [PATCH] Updated the copy for the Giphy warning prompt --- .../conversation/v2/ConversationActivityV2.kt | 12 ++++++------ app/src/main/res/values/strings.xml | 2 ++ 2 files changed, 8 insertions(+), 6 deletions(-) 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 8ba8f10688..a1a3dc2532 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 @@ -1439,16 +1439,16 @@ class ConversationActivityV2 : PassphraseRequiredActionBarActivity(), InputBarDe val hasSeenGIFMetaDataWarning: Boolean = textSecurePreferences.hasSeenGIFMetaDataWarning() if (!hasSeenGIFMetaDataWarning) { val builder = AlertDialog.Builder(this) - builder.setTitle("Search GIFs?") - builder.setMessage("You will not have full metadata protection when sending GIFs.") - builder.setPositiveButton("OK") { dialog: DialogInterface, _: Int -> + builder.setTitle(R.string.giphy_permission_title) + builder.setMessage(R.string.giphy_permission_message) + builder.setPositiveButton(R.string.continue_2) { dialog: DialogInterface, _: Int -> textSecurePreferences.setHasSeenGIFMetaDataWarning() AttachmentManager.selectGif(this, PICK_GIF) dialog.dismiss() } - builder.setNegativeButton( - "Cancel" - ) { dialog: DialogInterface, _: Int -> dialog.dismiss() } + builder.setNegativeButton(R.string.cancel) { dialog: DialogInterface, _: Int -> + dialog.dismiss() + } builder.create().show() } else { AttachmentManager.selectGif(this, PICK_GIF) diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 7c39714c09..ebacb766d1 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -871,4 +871,6 @@ Read Sent Failed to send + Search GIFs? + Session will connect to Giphy to provide search results. You will not have full metadata protection when sending GIFs.