change the default holiday event color

This commit is contained in:
tibbi 2017-10-21 16:12:11 +02:00
parent f2a89e8b77
commit e1075bee91
2 changed files with 2 additions and 1 deletions

View File

@ -280,7 +280,7 @@ class MainActivity : SimpleActivity(), NavigationListener {
val holidays = getString(R.string.holidays) val holidays = getString(R.string.holidays)
var eventTypeId = dbHelper.getEventTypeIdWithTitle(holidays) var eventTypeId = dbHelper.getEventTypeIdWithTitle(holidays)
if (eventTypeId == -1) { if (eventTypeId == -1) {
val eventType = EventType(0, holidays, config.primaryColor) val eventType = EventType(0, holidays, resources.getColor(R.color.default_holidays_color))
eventTypeId = dbHelper.insertEventType(eventType) eventTypeId = dbHelper.insertEventType(eventType)
} }
val result = IcsImporter().importEvents(this, it as String, eventTypeId) val result = IcsImporter().importEvents(this, it as String, eventTypeId)

View File

@ -4,4 +4,5 @@
<color name="darker_divider">#66808080</color> <color name="darker_divider">#66808080</color>
<color name="red_text">#FFF62F2F</color> <color name="red_text">#FFF62F2F</color>
<color name="default_birthdays_color">#FF303DF6</color> <color name="default_birthdays_color">#FF303DF6</color>
<color name="default_holidays_color">#FF64DD17</color>
</resources> </resources>