Update MonthFragmentsHolder.kt

This commit is contained in:
Tibor Kaputa
2021-12-20 20:43:51 +01:00
committed by GitHub
parent 93ae0514b8
commit 9ed553b367

View File

@ -149,6 +149,10 @@ class MonthFragmentsHolder : MyFragmentHolder(), NavigationListener {
} }
override fun getCurrentDate(): DateTime? { override fun getCurrentDate(): DateTime? {
return if (currentDayCode != "") DateTime(Formatter.getDateTimeFromCode(currentDayCode).toString()) else null return if (currentDayCode != "") {
DateTime(Formatter.getDateTimeFromCode(currentDayCode).toString())
} else {
null
}
} }
} }