mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-29 13:24:52 +02:00
Set notification channel light color
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user