From b64555d3ae50e15f5749045a173a0e43f1fa7b83 Mon Sep 17 00:00:00 2001 From: MM20 <15646950+MM2-0@users.noreply.github.com> Date: Sat, 13 May 2023 15:22:29 +0200 Subject: [PATCH] Add color to notification data class --- .../main/java/de/mm20/launcher2/notifications/Notification.kt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/data/notifications/src/main/java/de/mm20/launcher2/notifications/Notification.kt b/data/notifications/src/main/java/de/mm20/launcher2/notifications/Notification.kt index 29634590..651182f0 100644 --- a/data/notifications/src/main/java/de/mm20/launcher2/notifications/Notification.kt +++ b/data/notifications/src/main/java/de/mm20/launcher2/notifications/Notification.kt @@ -15,6 +15,7 @@ data class Notification( val postTime: Long, val canShowBadge: Boolean, val number: Int, + val color: Int, val smallIcon: Icon?, val extras: Bundle, val flags: Int = 0, @@ -30,6 +31,7 @@ data class Notification( postTime = sbn.postTime, canShowBadge = ranking.canShowBadge(), number = sbn.notification.number, + color = sbn.notification.color, smallIcon = sbn.notification.smallIcon, extras = sbn.notification.extras, flags = sbn.notification.flags, @@ -46,6 +48,7 @@ data class Notification( postTime = notification.postTime, canShowBadge = ranking.canShowBadge(), number = notification.number, + color = notification.color, smallIcon = notification.smallIcon, extras = notification.extras, contentIntent = notification.contentIntent