Notification subject instead of message preview italic

This commit is contained in:
M66B 2019-12-02 21:32:16 +01:00
parent 6c00f48a12
commit b46b85f621
1 changed files with 2 additions and 2 deletions

View File

@ -3094,10 +3094,10 @@ class Core {
// Device
StringBuilder sbm = new StringBuilder();
if (!TextUtils.isEmpty(message.subject))
sbm.append(message.subject).append("<br>");
sbm.append("<em>").append(message.subject).append("</em>").append("<br>");
if (!TextUtils.isEmpty(message.preview))
sbm.append("<em>").append(message.preview).append("</em>");
sbm.append(message.preview);
NotificationCompat.BigTextStyle bigText = new NotificationCompat.BigTextStyle()
.bigText(HtmlHelper.fromHtml(sbm.toString()));