Skip to content

Commit

Permalink
fix: [ANDROAPP-6644] manage icon for scheduled events correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
xavimolloy authored and mmmateos committed Nov 26, 2024
1 parent 1a7bf07 commit a7eff18
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -279,11 +279,11 @@ class EventInfoProvider(
EventStatus.SCHEDULE -> {
val text = dueDate.toOverdueOrScheduledUiText(resourceManager)
val color = if (dateUtils.isEventDueDateOverdue(dueDate)) AdditionalInfoItemColor.ERROR.color else AdditionalInfoItemColor.SUCCESS.color

val iconVector = if (dateUtils.isEventDueDateOverdue(dueDate)) Icons.Outlined.EventBusy else Icons.Outlined.Event
AdditionalInfoItem(
icon = {
Icon(
imageVector = Icons.Outlined.Event,
imageVector = iconVector,
contentDescription = text,
tint = color,
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -196,10 +196,11 @@ class TEIEventCardMapper(
EventStatus.SCHEDULE -> {
val text = dueDate.toOverdueOrScheduledUiText(resourceManager)
val color = if (dateUtils.isEventDueDateOverdue(dueDate)) AdditionalInfoItemColor.ERROR.color else AdditionalInfoItemColor.SUCCESS.color
val icon = if (dateUtils.isEventDueDateOverdue(dueDate)) Icons.Outlined.EventBusy else Icons.Outlined.Event
AdditionalInfoItem(
icon = {
Icon(
imageVector = Icons.Outlined.Event,
imageVector = icon,
contentDescription = text,
tint = color,
)
Expand Down

0 comments on commit a7eff18

Please sign in to comment.