From 9ed553b367c151b3488a1b7c5877ba7e39ec79b4 Mon Sep 17 00:00:00 2001 From: Tibor Kaputa Date: Mon, 20 Dec 2021 20:43:51 +0100 Subject: [PATCH] Update MonthFragmentsHolder.kt --- .../calendar/pro/fragments/MonthFragmentsHolder.kt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/calendar/pro/fragments/MonthFragmentsHolder.kt b/app/src/main/kotlin/com/simplemobiletools/calendar/pro/fragments/MonthFragmentsHolder.kt index 5ec58f13c..e84e6f7b5 100644 --- a/app/src/main/kotlin/com/simplemobiletools/calendar/pro/fragments/MonthFragmentsHolder.kt +++ b/app/src/main/kotlin/com/simplemobiletools/calendar/pro/fragments/MonthFragmentsHolder.kt @@ -149,6 +149,10 @@ class MonthFragmentsHolder : MyFragmentHolder(), NavigationListener { } override fun getCurrentDate(): DateTime? { - return if (currentDayCode != "") DateTime(Formatter.getDateTimeFromCode(currentDayCode).toString()) else null + return if (currentDayCode != "") { + DateTime(Formatter.getDateTimeFromCode(currentDayCode).toString()) + } else { + null + } } }