From 26f200ad74ddcdd98ec952e4af2707c3bc4f19c8 Mon Sep 17 00:00:00 2001 From: M66B Date: Fri, 2 Feb 2024 09:43:01 +0100 Subject: [PATCH] Small improvement --- app/src/main/java/eu/faircode/email/ActivityError.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/eu/faircode/email/ActivityError.java b/app/src/main/java/eu/faircode/email/ActivityError.java index e07f3eac13..474df0fbc9 100644 --- a/app/src/main/java/eu/faircode/email/ActivityError.java +++ b/app/src/main/java/eu/faircode/email/ActivityError.java @@ -102,7 +102,9 @@ public class ActivityError extends ActivityBase { tvMessage.setMovementMethod(LinkMovementMethodCompat.getInstance()); tvMessage.setText(message); - tvCertificate.setVisibility(isCertificateException ? View.VISIBLE : View.GONE); + tvCertificate.setVisibility( + isCertificateException && !SSLHelper.customTrustManager() + ? View.VISIBLE : View.GONE); boolean password = (auth_type == ServiceAuthenticator.AUTH_TYPE_PASSWORD);