From 6d4f212a187813b81c5cd029f0621b44e0f537dd Mon Sep 17 00:00:00 2001 From: Grishka Date: Mon, 25 Sep 2023 23:00:15 +0300 Subject: [PATCH] Probably need to set this too --- .../java/org/joinmastodon/android/PushNotificationReceiver.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mastodon/src/main/java/org/joinmastodon/android/PushNotificationReceiver.java b/mastodon/src/main/java/org/joinmastodon/android/PushNotificationReceiver.java index e618ea30..ca7dd64b 100644 --- a/mastodon/src/main/java/org/joinmastodon/android/PushNotificationReceiver.java +++ b/mastodon/src/main/java/org/joinmastodon/android/PushNotificationReceiver.java @@ -118,6 +118,8 @@ public class PushNotificationReceiver extends BroadcastReceiver{ List channels=Arrays.stream(PushNotification.Type.values()) .map(type->{ NotificationChannel channel=new NotificationChannel(accountID+"_"+type, context.getString(type.localizedName), NotificationManager.IMPORTANCE_DEFAULT); + channel.setLightColor(context.getColor(R.color.primary_700)); + channel.enableLights(true); channel.setGroup(accountID); return channel; })