make ListSection isToday false by default
This commit is contained in:
parent
4f0f909d07
commit
d204b1b42c
2 changed files with 2 additions and 2 deletions
|
@ -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))
|
||||
|
|
|
@ -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}"
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue