From 42eacea4be300c3f0120abc8a537620e15006391 Mon Sep 17 00:00:00 2001 From: sk Date: Wed, 21 Dec 2022 20:57:12 -0300 Subject: [PATCH] use color attributes instead of fixed colors --- .../java/org/joinmastodon/android/PushNotificationReceiver.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mastodon/src/main/java/org/joinmastodon/android/PushNotificationReceiver.java b/mastodon/src/main/java/org/joinmastodon/android/PushNotificationReceiver.java index d56356ded..f37f70a99 100644 --- a/mastodon/src/main/java/org/joinmastodon/android/PushNotificationReceiver.java +++ b/mastodon/src/main/java/org/joinmastodon/android/PushNotificationReceiver.java @@ -142,7 +142,7 @@ public class PushNotificationReceiver extends BroadcastReceiver{ .setShowWhen(true) .setCategory(Notification.CATEGORY_SOCIAL) .setAutoCancel(true) - .setColor(context.getColor(R.color.shortcut_icon_background)); + .setColor(UiUtils.getThemeColor(context, R.attr.colorPrimary700)); if(GlobalUserPreferences.showDifferentiatedPushNoticationIcons){ switch (pn.notificationType) { case FAVORITE -> builder.setSmallIcon(R.drawable.ic_fluent_star_24_filled);