Update WeekFragmentsHolder.kt

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

View File

@ -314,6 +314,10 @@ class WeekFragmentsHolder : MyFragmentHolder(), WeekFragmentListener {
}
override fun getCurrentDate(): DateTime? {
return if (currentWeekTS != 0L) Formatter.getUTCDateTimeFromTS(currentWeekTS) else null
return if (currentWeekTS != 0L) {
Formatter.getUTCDateTimeFromTS(currentWeekTS)
} else {
null
}
}
}