From bdf0ffd06978612fa9abe946288155e88e30833a Mon Sep 17 00:00:00 2001 From: M66B Date: Wed, 11 Mar 2020 16:58:10 +0100 Subject: [PATCH] Improved error message --- app/src/main/java/eu/faircode/email/FragmentMessages.java | 2 +- app/src/main/res/values/strings.xml | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/eu/faircode/email/FragmentMessages.java b/app/src/main/java/eu/faircode/email/FragmentMessages.java index 32a32cf220..8334f175a1 100644 --- a/app/src/main/java/eu/faircode/email/FragmentMessages.java +++ b/app/src/main/java/eu/faircode/email/FragmentMessages.java @@ -5396,7 +5396,7 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences. if (is == null) { if (message.identity != null) db.identity().setIdentitySignKeyAlias(message.identity, null); - throw new IllegalArgumentException(context.getString(R.string.title_invalid_key)); + throw new IllegalArgumentException(context.getString(R.string.title_unknown_key)); } } diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 0b804f1f62..4bf5f3198e 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -817,6 +817,7 @@ Public key of %1$s is invalid No private key Invalid private key + Private key does not match encryption key Plain text only Request receipt Most providers and email clients ignore receipt requests