From 2a3684db91c75152740b53f4876215e488ad9d88 Mon Sep 17 00:00:00 2001 From: M66B Date: Sun, 12 Jul 2020 20:24:21 +0200 Subject: [PATCH] Set notification channel light color --- app/src/main/java/eu/faircode/email/ApplicationEx.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/src/main/java/eu/faircode/email/ApplicationEx.java b/app/src/main/java/eu/faircode/email/ApplicationEx.java index 7291ed8de0..c79f354991 100644 --- a/app/src/main/java/eu/faircode/email/ApplicationEx.java +++ b/app/src/main/java/eu/faircode/email/ApplicationEx.java @@ -30,6 +30,7 @@ import android.content.Intent; import android.content.IntentFilter; import android.content.SharedPreferences; import android.content.res.Configuration; +import android.graphics.Color; import android.os.Build; import android.util.Printer; import android.webkit.CookieManager; @@ -330,6 +331,7 @@ public class ApplicationEx extends Application { NotificationManager.IMPORTANCE_HIGH); notification.setLockscreenVisibility(Notification.VISIBILITY_PRIVATE); notification.enableLights(true); + notification.setLightColor(Color.YELLOW); nm.createNotificationChannel(notification); // Update