From 2de8f3d35b80fe476d9e579dcfd323e72789a802 Mon Sep 17 00:00:00 2001 From: Daniel Gultsch Date: Mon, 31 Aug 2020 16:56:23 +0200 Subject: [PATCH] change title of lock icon when changing encryption --- .../conversations/ui/util/ConversationMenuConfigurator.java | 6 +++--- src/main/res/values/strings.xml | 4 +++- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/main/java/eu/siacs/conversations/ui/util/ConversationMenuConfigurator.java b/src/main/java/eu/siacs/conversations/ui/util/ConversationMenuConfigurator.java index 98986e03a..24bbdd7c7 100644 --- a/src/main/java/eu/siacs/conversations/ui/util/ConversationMenuConfigurator.java +++ b/src/main/java/eu/siacs/conversations/ui/util/ConversationMenuConfigurator.java @@ -112,16 +112,16 @@ public class ConversationMenuConfigurator { none.setVisible(Config.supportUnencrypted() || conversation.getMode() == Conversation.MODE_MULTI); axolotl.setVisible(Config.supportOmemo()); switch (conversation.getNextEncryption()) { - case Message.ENCRYPTION_NONE: - none.setChecked(true); - break; case Message.ENCRYPTION_PGP: + menuSecure.setTitle(R.string.encrypted_with_openpgp); pgp.setChecked(true); break; case Message.ENCRYPTION_AXOLOTL: + menuSecure.setTitle(R.string.encrypted_with_omemo); axolotl.setChecked(true); break; default: + menuSecure.setTitle(R.string.not_encrypted); none.setChecked(true); break; } diff --git a/src/main/res/values/strings.xml b/src/main/res/values/strings.xml index c04115ff6..71eb76f58 100644 --- a/src/main/res/values/strings.xml +++ b/src/main/res/values/strings.xml @@ -8,7 +8,6 @@ Contact details Group chat details Channel details - Secure conversation Add account Edit name Add to address book @@ -931,6 +930,9 @@ This conversation Your avatar Avatar for %s + Encrypted with OMEMO + Encrypted with OpenPGP + Not encrypted View %1$d Participant View %1$d Participants