From 183b39bc24c393e6be024b107d86b15946928795 Mon Sep 17 00:00:00 2001 From: Grishka Date: Mon, 25 Sep 2023 22:58:08 +0300 Subject: [PATCH] Specify LED color for notifications closes #695 --- .../java/org/joinmastodon/android/PushNotificationReceiver.java | 1 + 1 file changed, 1 insertion(+) diff --git a/mastodon/src/main/java/org/joinmastodon/android/PushNotificationReceiver.java b/mastodon/src/main/java/org/joinmastodon/android/PushNotificationReceiver.java index cf5123fb1..e618ea309 100644 --- a/mastodon/src/main/java/org/joinmastodon/android/PushNotificationReceiver.java +++ b/mastodon/src/main/java/org/joinmastodon/android/PushNotificationReceiver.java @@ -147,6 +147,7 @@ public class PushNotificationReceiver extends BroadcastReceiver{ .setShowWhen(true) .setCategory(Notification.CATEGORY_SOCIAL) .setAutoCancel(true) + .setLights(context.getColor(R.color.primary_700), 500, 1000) .setColor(context.getColor(R.color.primary_700)); if(avatar!=null){ builder.setLargeIcon(UiUtils.getBitmapFromDrawable(avatar));