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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 1 deletions

View File

@ -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
}
}
}