From 3dc2bf7979b00598741d98d70d175b8e44bb79af Mon Sep 17 00:00:00 2001 From: tibbi Date: Mon, 22 Feb 2021 21:43:02 +0100 Subject: [PATCH] show the current months events by default, not just todays --- .../calendar/pro/fragments/MonthDayFragment.kt | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/calendar/pro/fragments/MonthDayFragment.kt b/app/src/main/kotlin/com/simplemobiletools/calendar/pro/fragments/MonthDayFragment.kt index 39d4ddd26..b6ce26411 100644 --- a/app/src/main/kotlin/com/simplemobiletools/calendar/pro/fragments/MonthDayFragment.kt +++ b/app/src/main/kotlin/com/simplemobiletools/calendar/pro/fragments/MonthDayFragment.kt @@ -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()