From cca38ddf3f72ad88d37d838fab7ba391d6ebc113 Mon Sep 17 00:00:00 2001 From: Geonu Kang Date: Fri, 20 Nov 2015 01:05:31 +0900 Subject: [PATCH] Improve Delete Thread, Reset Secure Session confirmation dialogs Fixes #4512 Closes #4513 // FREEBIE --- res/values/strings.xml | 11 ++++++----- .../securesms/ConversationActivity.java | 16 ++++++++-------- 2 files changed, 14 insertions(+), 13 deletions(-) diff --git a/res/values/strings.xml b/res/values/strings.xml index 6a0b5e13fa..d0f029742e 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -89,10 +89,11 @@ Can\'t find an app able to open this media. - Reset secure session confirmation - Are you sure that you want to reset this secure session? - Delete thread confirmation - Are you sure that you want to permanently delete this conversation? + Reset secure session? + This may help if you\'re having encryption problems in this conversation. Your messages will be kept. + Reset + Delete conversation? + This will permanently delete all messages in this conversation. Add attachment Select contact info Compose message @@ -1039,7 +1040,7 @@ Add attachment Update group Leave group - Delete thread + Delete conversation All images Conversation settings diff --git a/src/org/thoughtcrime/securesms/ConversationActivity.java b/src/org/thoughtcrime/securesms/ConversationActivity.java index c421f58927..036c265d20 100644 --- a/src/org/thoughtcrime/securesms/ConversationActivity.java +++ b/src/org/thoughtcrime/securesms/ConversationActivity.java @@ -497,11 +497,11 @@ public class ConversationActivity extends PassphraseRequiredActionBarActivity private void handleResetSecureSession() { AlertDialog.Builder builder = new AlertDialog.Builder(this); - builder.setTitle(R.string.ConversationActivity_reset_secure_session_confirmation); + builder.setTitle(R.string.ConversationActivity_reset_secure_session_question); builder.setIconAttribute(R.attr.dialog_alert_icon); builder.setCancelable(true); - builder.setMessage(R.string.ConversationActivity_are_you_sure_that_you_want_to_reset_this_secure_session_question); - builder.setPositiveButton(R.string.yes, new DialogInterface.OnClickListener() { + builder.setMessage(R.string.ConversationActivity_this_may_help_if_youre_having_encryption_problems); + builder.setPositiveButton(R.string.ConversationActivity_reset, new DialogInterface.OnClickListener() { @Override public void onClick(DialogInterface dialog, int which) { if (isSingleConversation()) { @@ -524,7 +524,7 @@ public class ConversationActivity extends PassphraseRequiredActionBarActivity } } }); - builder.setNegativeButton(R.string.no, null); + builder.setNegativeButton(android.R.string.cancel, null); builder.show(); } @@ -645,11 +645,11 @@ public class ConversationActivity extends PassphraseRequiredActionBarActivity private void handleDeleteThread() { AlertDialog.Builder builder = new AlertDialog.Builder(this); - builder.setTitle(R.string.ConversationActivity_delete_thread_confirmation); + builder.setTitle(R.string.ConversationActivity_delete_thread_question); builder.setIconAttribute(R.attr.dialog_alert_icon); builder.setCancelable(true); - builder.setMessage(R.string.ConversationActivity_are_you_sure_that_you_want_to_permanently_delete_this_conversation_question); - builder.setPositiveButton(R.string.yes, new DialogInterface.OnClickListener() { + builder.setMessage(R.string.ConversationActivity_this_will_permanently_delete_all_messages_in_this_conversation); + builder.setPositiveButton(R.string.delete, new DialogInterface.OnClickListener() { @Override public void onClick(DialogInterface dialog, int which) { if (threadId > 0) { @@ -661,7 +661,7 @@ public class ConversationActivity extends PassphraseRequiredActionBarActivity } }); - builder.setNegativeButton(R.string.no, null); + builder.setNegativeButton(android.R.string.cancel, null); builder.show(); }