mirror of
https://github.com/SimpleMobileTools/Simple-Calendar.git
synced 2025-01-30 18:34:52 +01:00
make ListSection isToday false by default
This commit is contained in:
parent
4f0f909d07
commit
d204b1b42c
@ -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…
x
Reference in New Issue
Block a user