Suppress empty subject

This commit is contained in:
M66B 2020-08-29 13:10:44 +02:00
parent 2e9c393062
commit c78e82e15e
1 changed files with 3 additions and 2 deletions

View File

@ -25,6 +25,7 @@ import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.os.Build;
import android.text.TextUtils;
import androidx.annotation.NonNull;
import androidx.preference.PreferenceManager;
@ -301,11 +302,11 @@ public class EntityMessage implements Serializable {
p.appendText(DF.format(received));
p.appendElement("br");
}
{
if (!TextUtils.isEmpty(subject)) {
Element strong = document.createElement("strong");
strong.text(Helper.getString(context, l, R.string.title_subject) + " ");
p.appendChild(strong);
p.appendText(subject == null ? "" : subject);
p.appendText(subject);
p.appendElement("br");
}
} else