use thursdays for determining week numbers

This commit is contained in:
tibbi 2017-01-22 16:24:13 +01:00
parent fdb7a46c44
commit 03a11ff99b
2 changed files with 2 additions and 2 deletions

View file

@ -243,7 +243,7 @@ class MainActivity : SimpleActivity(), EventListFragment.DeleteListener {
val endMonthName = Formatter.getMonthName(this, endDateTime.monthOfYear)
title = "$startMonthName - $endMonthName"
}
supportActionBar?.subtitle = "${getString(R.string.week)} ${startDateTime.weekOfWeekyear.toString()}"
supportActionBar?.subtitle = "${getString(R.string.week)} ${startDateTime.plusDays(3).weekOfWeekyear}"
}
private fun fillYearlyViewPager() {

View file

@ -165,7 +165,7 @@ class MonthFragment : Fragment(), MonthlyCalendar {
for (i in 0..5) {
(mHolder.findViewById(mRes.getIdentifier("week_num_$i", "id", mPackageName)) as TextView).apply {
text = "${days[i * 7].weekOfYear}:"
text = "${days[i * 7 + 3].weekOfYear}:"
setTextColor(mWeakTextColor)
beVisibleIf(displayWeekNumbers)
}