From b43f63a1424533e4a7aa865cea09188ce231df00 Mon Sep 17 00:00:00 2001 From: tibbi Date: Fri, 30 Mar 2018 11:24:30 +0200 Subject: [PATCH] set proper default day at pressing "Plus" on monthly view --- .../calendar/fragments/MonthFragmentsHolder.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/calendar/fragments/MonthFragmentsHolder.kt b/app/src/main/kotlin/com/simplemobiletools/calendar/fragments/MonthFragmentsHolder.kt index 2e82217c1..7f71acd7e 100644 --- a/app/src/main/kotlin/com/simplemobiletools/calendar/fragments/MonthFragmentsHolder.kt +++ b/app/src/main/kotlin/com/simplemobiletools/calendar/fragments/MonthFragmentsHolder.kt @@ -108,5 +108,5 @@ class MonthFragmentsHolder : MyFragmentHolder(), NavigationListener { (activity as MainActivity).supportActionBar?.title = getString(R.string.app_launcher_name) } - override fun getNewEventDayCode() = currentDayCode + override fun getNewEventDayCode() = if (shouldGoToTodayBeVisible()) currentDayCode else todayDayCode }