1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2025-01-18 13:21:02 +00:00

Set notification channel light color

This commit is contained in:
M66B 2020-07-12 20:24:21 +02:00
parent b17c13d7e4
commit 2a3684db91

View file

@ -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