mirror of
https://github.com/SimpleMobileTools/Simple-Calendar.git
synced 2025-02-17 12:20:51 +01:00
display the year in weekly view if its not the current
This commit is contained in:
parent
6151604759
commit
22694336e1
@ -246,7 +246,10 @@ class MainActivity : SimpleActivity(), EventListFragment.DeleteListener {
|
||||
val endDateTime = Formatter.getDateTimeFromTS(timestamp + secondsInWeek)
|
||||
val startMonthName = Formatter.getMonthName(this, startDateTime.monthOfYear)
|
||||
if (startDateTime.monthOfYear == endDateTime.monthOfYear) {
|
||||
title = startMonthName
|
||||
var newTitle = startMonthName
|
||||
if (startDateTime.year != DateTime().year)
|
||||
newTitle += " - ${startDateTime.year}"
|
||||
title = newTitle
|
||||
} else {
|
||||
val endMonthName = Formatter.getMonthName(this, endDateTime.monthOfYear)
|
||||
title = "$startMonthName - $endMonthName"
|
||||
|
Loading…
x
Reference in New Issue
Block a user