From e592fa932cffa9c830b24fee1dc2dbedb5d23d3a Mon Sep 17 00:00:00 2001 From: M66B Date: Tue, 27 Oct 2020 11:12:18 +0100 Subject: [PATCH] Suppress logging --- app/src/main/java/eu/faircode/email/MessageHelper.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/eu/faircode/email/MessageHelper.java b/app/src/main/java/eu/faircode/email/MessageHelper.java index 1f6a3cc2cb..70eb878113 100644 --- a/app/src/main/java/eu/faircode/email/MessageHelper.java +++ b/app/src/main/java/eu/faircode/email/MessageHelper.java @@ -1806,7 +1806,9 @@ public class MessageHelper { if (CHARSET16.contains(c)) break; // Can't convert 16 bits charset to 8 bits Charset detected = CharsetHelper.detect(result); - Log.e("Converting detected=" + detected + " meta=" + c); + if (!(StandardCharsets.US_ASCII.equals(detected) && + StandardCharsets.UTF_8.equals(c))) + Log.e("Converting detected=" + detected + " meta=" + c); result = new String(result.getBytes(StandardCharsets.ISO_8859_1), c); break; } catch (Throwable ex) {