Separated summary notification account color

This commit is contained in:
M66B 2019-09-01 13:00:43 +02:00
parent b3982bef89
commit 8e2e980f47
1 changed files with 6 additions and 0 deletions

View File

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