From 3bf0c9f8e78f6fa8036b631dfca0baf88e935a5e Mon Sep 17 00:00:00 2001 From: M66B Date: Wed, 7 Aug 2024 08:02:05 +0200 Subject: [PATCH] Fixed PGP/stripped --- .../main/java/eu/faircode/email/FragmentMessages.java | 10 +++++++++- 1 file changed, 9 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 10c2de373c..c9083670a5 100644 --- a/app/src/main/java/eu/faircode/email/FragmentMessages.java +++ b/app/src/main/java/eu/faircode/email/FragmentMessages.java @@ -9554,7 +9554,15 @@ public class FragmentMessages extends FragmentBase String text = context.getString(R.string.title_signature_invalid_reason, Integer.toString(sresult)); args.putString("sigresult", text); } else { - onPgp(data, auto, true); + View v = view; + if (v == null) + return null; + v.post(new RunnableEx("stripped") { + @Override + protected void delegate() { + onPgp(data, auto, true); + } + }); return null; } }