change the default holiday event color
This commit is contained in:
parent
f2a89e8b77
commit
e1075bee91
|
@ -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)
|
||||||
|
|
|
@ -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>
|
||||||
|
|
Loading…
Reference in New Issue