fix #222, properly color the event type dot at the list view widget

This commit is contained in:
tibbi 2017-09-24 17:41:20 +02:00
parent 3908a6e3db
commit 209e232c42
1 changed files with 1 additions and 1 deletions

View File

@ -40,7 +40,7 @@ class EventListWidgetAdapter(val context: Context, val intent: Intent) : RemoteV
setTextViewText(R.id.event_item_title, item.title) setTextViewText(R.id.event_item_title, item.title)
setTextViewText(R.id.event_item_description, item.description) setTextViewText(R.id.event_item_description, item.description)
setTextViewText(R.id.event_item_start, if (item.isAllDay) allDayString else Formatter.getTimeFromTS(context, item.startTS)) setTextViewText(R.id.event_item_start, if (item.isAllDay) allDayString else Formatter.getTimeFromTS(context, item.startTS))
setImageViewBitmap(R.id.event_item_color, context.resources.getColoredIcon(textColor, R.drawable.monthly_event_dot)) setImageViewBitmap(R.id.event_item_color, context.resources.getColoredIcon(item.color, R.drawable.monthly_event_dot))
if (item.startTS == item.endTS) { if (item.startTS == item.endTS) {
setViewVisibility(R.id.event_item_end, View.INVISIBLE) setViewVisibility(R.id.event_item_end, View.INVISIBLE)