mirror of
https://github.com/oxen-io/session-android.git
synced 2024-11-30 13:35:18 +00:00
Make 'reset secure session' consistent
Closes #4200 Fixes #4198 // FREEBIE
This commit is contained in:
parent
399dfb1a98
commit
a0859a71b2
@ -1,5 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<menu xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:title="@string/conversation_secure_verified__menu_reset_secure_session"
|
||||
android:id="@+id/menu_abort_session"/>
|
||||
android:id="@+id/menu_reset_secure_session"/>
|
||||
</menu>
|
@ -90,8 +90,8 @@
|
||||
<!-- ConversationActivity -->
|
||||
<string name="ConversationActivity_initiate_secure_session_question">Initiate secure session?</string>
|
||||
<string name="ConversationActivity_initiate_secure_session_with_s_question">Initiate secure session with %s?</string>
|
||||
<string name="ConversationActivity_abort_secure_session_confirmation">End secure session confirmation</string>
|
||||
<string name="ConversationActivity_are_you_sure_that_you_want_to_abort_this_secure_session_question">Are you sure that you want to end this secure session?</string>
|
||||
<string name="ConversationActivity_reset_secure_session_confirmation">Reset secure session confirmation</string>
|
||||
<string name="ConversationActivity_are_you_sure_that_you_want_to_reset_this_secure_session_question">Are you sure that you want to reset this secure session?</string>
|
||||
<string name="ConversationActivity_delete_thread_confirmation">Delete thread confirmation</string>
|
||||
<string name="ConversationActivity_are_you_sure_that_you_want_to_permanently_delete_this_conversation_question">Are you sure that you want to permanently delete this conversation?</string>
|
||||
<string name="ConversationActivity_add_attachment">Add attachment</string>
|
||||
@ -438,12 +438,12 @@
|
||||
Received message with unknown identity key. Click to process and display.
|
||||
</string>
|
||||
<string name="SmsMessageRecord_received_updated_but_unknown_identity_information">Received updated but unknown identity information. Tap to validate identity.</string>
|
||||
<string name="SmsMessageRecord_secure_session_ended">Secure session ended.</string>
|
||||
<string name="SmsMessageRecord_secure_session_reset">Secure session reset.</string>
|
||||
<string name="SmsMessageRecord_duplicate_message">Duplicate message.</string>
|
||||
|
||||
<!-- ThreadRecord -->
|
||||
<string name="ThreadRecord_left_the_group">Left the group...</string>
|
||||
<string name="TheadRecord_secure_session_ended">Secure session ended.</string>
|
||||
<string name="ThreadRecord_secure_session_reset">Secure session reset.</string>
|
||||
<string name="ThreadRecord_draft">Draft:</string>
|
||||
<string name="ThreadRecord_called">You called</string>
|
||||
<string name="ThreadRecord_called_you">Called you</string>
|
||||
|
@ -392,7 +392,7 @@ public class ConversationActivity extends PassphraseRequiredActionBarActivity
|
||||
case R.id.menu_add_attachment: handleAddAttachment(); return true;
|
||||
case R.id.menu_view_media: handleViewMedia(); return true;
|
||||
case R.id.menu_add_to_contacts: handleAddToContacts(); return true;
|
||||
case R.id.menu_abort_session: handleAbortSecureSession(); return true;
|
||||
case R.id.menu_reset_secure_session: handleResetSecureSession(); return true;
|
||||
case R.id.menu_group_recipients: handleDisplayGroupRecipients(); return true;
|
||||
case R.id.menu_distribution_broadcast: handleDistributionBroadcastEnabled(item); return true;
|
||||
case R.id.menu_distribution_conversation: handleDistributionConversationEnabled(item); return true;
|
||||
@ -498,12 +498,12 @@ public class ConversationActivity extends PassphraseRequiredActionBarActivity
|
||||
}
|
||||
}
|
||||
|
||||
private void handleAbortSecureSession() {
|
||||
private void handleResetSecureSession() {
|
||||
AlertDialogWrapper.Builder builder = new AlertDialogWrapper.Builder(this);
|
||||
builder.setTitle(R.string.ConversationActivity_abort_secure_session_confirmation);
|
||||
builder.setTitle(R.string.ConversationActivity_reset_secure_session_confirmation);
|
||||
builder.setIconAttribute(R.attr.dialog_alert_icon);
|
||||
builder.setCancelable(true);
|
||||
builder.setMessage(R.string.ConversationActivity_are_you_sure_that_you_want_to_abort_this_secure_session_question);
|
||||
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() {
|
||||
@Override
|
||||
public void onClick(DialogInterface dialog, int which) {
|
||||
|
@ -89,7 +89,7 @@ public class SmsMessageRecord extends MessageRecord {
|
||||
} else if (!getBody().isPlaintext()) {
|
||||
return emphasisAdded(context.getString(R.string.MessageNotifier_locked_message));
|
||||
} else if (SmsDatabase.Types.isEndSessionType(type)) {
|
||||
return emphasisAdded(context.getString(R.string.SmsMessageRecord_secure_session_ended));
|
||||
return emphasisAdded(context.getString(R.string.SmsMessageRecord_secure_session_reset));
|
||||
} else {
|
||||
return super.getDisplayBody();
|
||||
}
|
||||
|
@ -69,7 +69,7 @@ public class ThreadRecord extends DisplayRecord {
|
||||
} else if (!getBody().isPlaintext()) {
|
||||
return emphasisAdded(context.getString(R.string.MessageNotifier_locked_message));
|
||||
} else if (SmsDatabase.Types.isEndSessionType(type)) {
|
||||
return emphasisAdded(context.getString(R.string.TheadRecord_secure_session_ended));
|
||||
return emphasisAdded(context.getString(R.string.ThreadRecord_secure_session_reset));
|
||||
} else if (MmsSmsColumns.Types.isLegacyType(type)) {
|
||||
return emphasisAdded(context.getString(R.string.MessageRecord_message_encrypted_with_a_legacy_protocol_version_that_is_no_longer_supported));
|
||||
} else if (MmsSmsColumns.Types.isDraftMessageType(type)) {
|
||||
|
Loading…
Reference in New Issue
Block a user