Specify LED color for notifications

closes #695
This commit is contained in:
Grishka 2023-09-25 22:58:08 +03:00
parent 27ad0c6fcf
commit 183b39bc24
1 changed files with 1 additions and 0 deletions

View File

@ -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));