mirror of
https://github.com/SimpleMobileTools/Simple-Calendar.git
synced 2025-02-07 05:55:26 +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)
|
val code = Formatter.getDayCodeFromTS(it.startTS)
|
||||||
if (code != prevCode) {
|
if (code != prevCode) {
|
||||||
val day = Formatter.getDayTitle(context, code)
|
val day = Formatter.getDayTitle(context, code)
|
||||||
mListItems.add(ListSection(day, false))
|
mListItems.add(ListSection(day))
|
||||||
prevCode = code
|
prevCode = code
|
||||||
}
|
}
|
||||||
mListItems.add(ListEvent(it.id, it.startTS, it.endTS, it.title, it.description))
|
mListItems.add(ListEvent(it.id, it.startTS, it.endTS, it.title, it.description))
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
package com.simplemobiletools.calendar.models
|
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}"
|
override fun toString() = "ListSection {title=$title, isToday=$isToday}"
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user