From 223c43640178ae62ec454ac3c0df63adcfc76193 Mon Sep 17 00:00:00 2001 From: M66B Date: Mon, 14 Jan 2019 18:26:20 +0000 Subject: [PATCH] Simplification --- app/src/main/java/eu/faircode/email/MessageHelper.java | 3 ++- 1 file changed, 2 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 6089bf0bcc..cf15b8feb8 100644 --- a/app/src/main/java/eu/faircode/email/MessageHelper.java +++ b/app/src/main/java/eu/faircode/email/MessageHelper.java @@ -477,11 +477,12 @@ public class MessageHelper { String getSubject() throws MessagingException, UnsupportedEncodingException { String subject = imessage.getSubject(); - if (subject != null && subject.indexOf("=?") >= 0) { + if (subject != null && subject.contains("=?")) { String prev; do { prev = subject; subject = MimeUtility.decodeText(subject); + Log.i("Mime decode " + prev + " -> " + subject); } while (!subject.equals(prev)); }