make ListSection isToday false by default

This commit is contained in:
tibbi 2016-11-27 22:48:07 +01:00
parent 4f0f909d07
commit d204b1b42c
2 changed files with 2 additions and 2 deletions

View file

@ -65,7 +65,7 @@ class EventListFragment : Fragment(), DBHelper.GetEventsListener, DBHelper.Event
val code = Formatter.getDayCodeFromTS(it.startTS)
if (code != prevCode) {
val day = Formatter.getDayTitle(context, code)
mListItems.add(ListSection(day, false))
mListItems.add(ListSection(day))
prevCode = code
}
mListItems.add(ListEvent(it.id, it.startTS, it.endTS, it.title, it.description))

View file

@ -1,5 +1,5 @@
package com.simplemobiletools.calendar.models
class ListSection(val title: String, val isToday: Boolean) : ListItem() {
class ListSection(val title: String, val isToday: Boolean = false) : ListItem() {
override fun toString() = "ListSection {title=$title, isToday=$isToday}"
}