From 0963edffc413bba94e7e2eac1d7b7bce8ab62d92 Mon Sep 17 00:00:00 2001 From: M66B Date: Sat, 10 Nov 2018 08:08:31 +0000 Subject: [PATCH] Made notifications colorized --- app/src/main/java/eu/faircode/email/ServiceSynchronize.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/eu/faircode/email/ServiceSynchronize.java b/app/src/main/java/eu/faircode/email/ServiceSynchronize.java index 51271505b3..5d2c757291 100644 --- a/app/src/main/java/eu/faircode/email/ServiceSynchronize.java +++ b/app/src/main/java/eu/faircode/email/ServiceSynchronize.java @@ -542,8 +542,11 @@ public class ServiceSynchronize extends LifecycleService { mbuilder.addPerson(message.avatar); } - if (message.accountColor != null) + if (message.accountColor != null) { mbuilder.setColor(message.accountColor); + if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) + mbuilder.setColorized(true); + } } if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O)