Simplification

This commit is contained in:
M66B 2019-01-14 18:26:20 +00:00
parent ee7250ff55
commit 223c436401
1 changed files with 2 additions and 1 deletions

View File

@ -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));
}