Show account name for separated summary notification

This commit is contained in:
M66B 2019-09-01 16:05:42 +02:00
parent 4f4ab3a625
commit 4e164c9fbd
1 changed files with 7 additions and 4 deletions

View File

@ -2111,11 +2111,14 @@ class Core {
.setGroupSummary(true) .setGroupSummary(true)
.setGroupAlertBehavior(NotificationCompat.GROUP_ALERT_CHILDREN); .setGroupAlertBehavior(NotificationCompat.GROUP_ALERT_CHILDREN);
if (pro && group != 0 && if (pro && group != 0 && messages.size() > 0) {
messages.size() > 0 && messages.get(0).accountColor != null) { TupleMessageEx amessage = messages.get(0);
builder.setColor(messages.get(0).accountColor); if (amessage.accountColor != null) {
builder.setColor(amessage.accountColor);
builder.setColorized(true); builder.setColorized(true);
} }
builder.setSubText(amessage.accountName);
}
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.O) if (Build.VERSION.SDK_INT < Build.VERSION_CODES.O)
builder.setSound(null); builder.setSound(null);