mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-31 06:08:31 +02:00
Suppress empty subject
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user