show the current months events by default, not just todays

This commit is contained in:
tibbi
2021-02-22 21:43:02 +01:00
parent f97d59b14a
commit 3dc2bf7979

View File

@@ -51,14 +51,7 @@ class MonthDayFragment : Fragment(), MonthlyCalendar {
mDayCode = arguments!!.getString(DAY_CODE)!!
val shownMonthDateTime = Formatter.getDateTimeFromCode(mDayCode)
val todayCode = Formatter.getTodayCode()
val todayDateTime = Formatter.getDateTimeFromCode(todayCode)
mSelectedDayCode = if (todayDateTime.year == shownMonthDateTime.year && todayDateTime.monthOfYear == shownMonthDateTime.monthOfYear) {
todayCode
} else {
mHolder.month_day_selected_day_label.text = getMonthLabel(shownMonthDateTime)
""
}
mHolder.month_day_selected_day_label.text = getMonthLabel(shownMonthDateTime)
mConfig = context!!.config
storeStateVariables()