From 5a35be0ebd70adf486e03264c78e8980501b1278 Mon Sep 17 00:00:00 2001 From: Grishka Date: Mon, 25 Sep 2023 16: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 9b78655bf..6cd78782e 100644 --- a/mastodon/src/main/java/org/joinmastodon/android/PushNotificationReceiver.java +++ b/mastodon/src/main/java/org/joinmastodon/android/PushNotificationReceiver.java @@ -211,6 +211,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.shortcut_icon_background)); if (!GlobalUserPreferences.uniformNotificationIcon) {