mirror of https://github.com/M66B/FairEmail.git
Show account name for separated summary notification
This commit is contained in:
parent
4f4ab3a625
commit
4e164c9fbd
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue