From 57151145d30b72552cef5e3912bd44fee060bf24 Mon Sep 17 00:00:00 2001 From: Cody Henthorne Date: Mon, 17 Oct 2022 20:41:35 -0400 Subject: [PATCH] Update sms export copy to clarify intent in a few places. --- .../conversation/ConversationParentFragment.java | 9 +++++++-- .../res/layout/export_your_sms_messages_fragment.xml | 4 ++-- app/src/main/res/values/strings.xml | 6 +++++- 3 files changed, 14 insertions(+), 5 deletions(-) diff --git a/app/src/main/java/org/thoughtcrime/securesms/conversation/ConversationParentFragment.java b/app/src/main/java/org/thoughtcrime/securesms/conversation/ConversationParentFragment.java index afbc6cc90..73593f999 100644 --- a/app/src/main/java/org/thoughtcrime/securesms/conversation/ConversationParentFragment.java +++ b/app/src/main/java/org/thoughtcrime/securesms/conversation/ConversationParentFragment.java @@ -215,6 +215,7 @@ import org.thoughtcrime.securesms.keyboard.sticker.StickerKeyboardPageFragment; import org.thoughtcrime.securesms.keyboard.sticker.StickerSearchDialogFragment; import org.thoughtcrime.securesms.keyvalue.PaymentsValues; import org.thoughtcrime.securesms.keyvalue.SignalStore; +import org.thoughtcrime.securesms.keyvalue.SmsExportPhase; import org.thoughtcrime.securesms.linkpreview.LinkPreview; import org.thoughtcrime.securesms.linkpreview.LinkPreviewRepository; import org.thoughtcrime.securesms.linkpreview.LinkPreviewViewModel; @@ -2734,12 +2735,16 @@ public class ConversationParentFragment extends Fragment TextView message = smsExportStub.get().findViewById(R.id.export_sms_message); MaterialButton actionButton = smsExportStub.get().findViewById(R.id.export_sms_button); + boolean isPhase1 = SignalStore.misc().getSmsExportPhase() == SmsExportPhase.PHASE_1; if (conversationSecurityInfo.getHasUnexportedInsecureMessages()) { - message.setText(R.string.ConversationActivity__sms_messaging_is_no_longer_supported_in_signal_you_can_export_your_messages_to_another_app_on_your_phone); + message.setText(isPhase1 ? R.string.ConversationActivity__sms_messaging_is_currently_disabled_you_can_export_your_messages_to_another_app_on_your_phone + : R.string.ConversationActivity__sms_messaging_is_no_longer_supported_in_signal_you_can_export_your_messages_to_another_app_on_your_phone); actionButton.setText(R.string.ConversationActivity__export_sms_messages); actionButton.setOnClickListener(v -> startActivity(SmsExportActivity.createIntent(requireContext()))); } else { - message.setText(requireContext().getString(R.string.ConversationActivity__sms_messaging_is_no_longer_supported_in_signal_invite_s_to_to_signal_to_keep_the_conversation_here, recipient.getDisplayName(requireContext()))); + message.setText(requireContext().getString(isPhase1 ? R.string.ConversationActivity__sms_messaging_is_currently_disabled_invite_s_to_to_signal_to_keep_the_conversation_here + : R.string.ConversationActivity__sms_messaging_is_no_longer_supported_in_signal_invite_s_to_to_signal_to_keep_the_conversation_here, + recipient.getDisplayName(requireContext()))); actionButton.setText(R.string.ConversationActivity__invite_to_signal); actionButton.setOnClickListener(v -> handleInviteLink()); } diff --git a/app/src/main/res/layout/export_your_sms_messages_fragment.xml b/app/src/main/res/layout/export_your_sms_messages_fragment.xml index f0c07f29b..6ed011f3a 100644 --- a/app/src/main/res/layout/export_your_sms_messages_fragment.xml +++ b/app/src/main/res/layout/export_your_sms_messages_fragment.xml @@ -18,7 +18,7 @@ android:layout_height="match_parent" android:fillViewport="true"> - @@ -50,7 +50,7 @@ android:layout_marginHorizontal="32dp" android:layout_marginTop="24dp" android:gravity="center" - android:text="@string/ExportYourSmsMessagesFragment__you_can_export_your_sms_messages_to_your_phones_sms_database" + android:text="@string/ExportYourSmsMessagesFragment__you_can_export_your_sms_messages_to_your_phones_sms_database_and_youll_have_the_option_to_keep_or_remove_them_from_signal" android:textAppearance="@style/Signal.Text.BodyLarge" android:textColor="@color/signal_colorOnSurfaceVariant" app:layout_constraintTop_toBottomOf="@id/headline" /> diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 594b54eea..c431604ce 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -345,11 +345,15 @@ Reported as spam and blocked. + + SMS messaging is currently disabled. You can export your messages to another app on your phone. SMS messaging is no longer supported in Signal. You can export your messages to another app on your phone. Export SMS messages + SMS messaging is currently disabled. Invite %1$s to Signal to keep the conversation here. + SMS messaging is no longer supported in Signal. Invite %1$s to Signal to keep the conversation here. Invite to Signal @@ -5329,7 +5333,7 @@ Export your SMS messages - You can export your SMS messages to your phone\'s SMS database. This allows other SMS apps on your phone to access and import them. This does not create a shareable file of your SMS message history. + You can export your SMS messages to your phone\'s SMS database and you\'ll have the option to keep or remove them from Signal. This allows other SMS apps on your phone to import them. This does not create a shareable file of your SMS history. Continue