Add color to notification data class
This commit is contained in:
parent
9a222e449c
commit
b64555d3ae
@ -15,6 +15,7 @@ data class Notification(
|
|||||||
val postTime: Long,
|
val postTime: Long,
|
||||||
val canShowBadge: Boolean,
|
val canShowBadge: Boolean,
|
||||||
val number: Int,
|
val number: Int,
|
||||||
|
val color: Int,
|
||||||
val smallIcon: Icon?,
|
val smallIcon: Icon?,
|
||||||
val extras: Bundle,
|
val extras: Bundle,
|
||||||
val flags: Int = 0,
|
val flags: Int = 0,
|
||||||
@ -30,6 +31,7 @@ data class Notification(
|
|||||||
postTime = sbn.postTime,
|
postTime = sbn.postTime,
|
||||||
canShowBadge = ranking.canShowBadge(),
|
canShowBadge = ranking.canShowBadge(),
|
||||||
number = sbn.notification.number,
|
number = sbn.notification.number,
|
||||||
|
color = sbn.notification.color,
|
||||||
smallIcon = sbn.notification.smallIcon,
|
smallIcon = sbn.notification.smallIcon,
|
||||||
extras = sbn.notification.extras,
|
extras = sbn.notification.extras,
|
||||||
flags = sbn.notification.flags,
|
flags = sbn.notification.flags,
|
||||||
@ -46,6 +48,7 @@ data class Notification(
|
|||||||
postTime = notification.postTime,
|
postTime = notification.postTime,
|
||||||
canShowBadge = ranking.canShowBadge(),
|
canShowBadge = ranking.canShowBadge(),
|
||||||
number = notification.number,
|
number = notification.number,
|
||||||
|
color = notification.color,
|
||||||
smallIcon = notification.smallIcon,
|
smallIcon = notification.smallIcon,
|
||||||
extras = notification.extras,
|
extras = notification.extras,
|
||||||
contentIntent = notification.contentIntent
|
contentIntent = notification.contentIntent
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user