use color attributes instead of fixed colors
This commit is contained in:
parent
664bfe895e
commit
42eacea4be
@ -142,7 +142,7 @@ public class PushNotificationReceiver extends BroadcastReceiver{
|
|||||||
.setShowWhen(true)
|
.setShowWhen(true)
|
||||||
.setCategory(Notification.CATEGORY_SOCIAL)
|
.setCategory(Notification.CATEGORY_SOCIAL)
|
||||||
.setAutoCancel(true)
|
.setAutoCancel(true)
|
||||||
.setColor(context.getColor(R.color.shortcut_icon_background));
|
.setColor(UiUtils.getThemeColor(context, R.attr.colorPrimary700));
|
||||||
if(GlobalUserPreferences.showDifferentiatedPushNoticationIcons){
|
if(GlobalUserPreferences.showDifferentiatedPushNoticationIcons){
|
||||||
switch (pn.notificationType) {
|
switch (pn.notificationType) {
|
||||||
case FAVORITE -> builder.setSmallIcon(R.drawable.ic_fluent_star_24_filled);
|
case FAVORITE -> builder.setSmallIcon(R.drawable.ic_fluent_star_24_filled);
|
||||||
|
Loading…
Reference in New Issue
Block a user