Update MonthDayFragmentsHolder.kt

This commit is contained in:
Tibor Kaputa 2021-12-20 20:43:24 +01:00 committed by GitHub
parent e255557f25
commit 93ae0514b8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 1 deletions

View File

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