diff --git a/app/src/main/kotlin/com/simplemobiletools/calendar/activities/WidgetMonthlyConfigureActivity.kt b/app/src/main/kotlin/com/simplemobiletools/calendar/activities/WidgetMonthlyConfigureActivity.kt index f13d37c56..a25027385 100644 --- a/app/src/main/kotlin/com/simplemobiletools/calendar/activities/WidgetMonthlyConfigureActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/calendar/activities/WidgetMonthlyConfigureActivity.kt @@ -149,7 +149,7 @@ class WidgetMonthlyConfigureActivity : AppCompatActivity(), MonthlyCalendar { for (i in 0..5) { (findViewById(mRes.getIdentifier("week_num_$i", "id", mPackageName)) as TextView).apply { - text = "${mDays!![i * 7].weekOfYear}:" + text = "${mDays!![i * 7 + 3].weekOfYear}:" setTextColor(mWeakTextColor) visibility = View.VISIBLE } diff --git a/app/src/main/kotlin/com/simplemobiletools/calendar/helpers/MyWidgetMonthlyProvider.kt b/app/src/main/kotlin/com/simplemobiletools/calendar/helpers/MyWidgetMonthlyProvider.kt index 6a2608484..2fadbe774 100644 --- a/app/src/main/kotlin/com/simplemobiletools/calendar/helpers/MyWidgetMonthlyProvider.kt +++ b/app/src/main/kotlin/com/simplemobiletools/calendar/helpers/MyWidgetMonthlyProvider.kt @@ -116,7 +116,7 @@ class MyWidgetMonthlyProvider : AppWidgetProvider(), MonthlyCalendar { for (i in 0..5) { val id = mRes.getIdentifier("week_num_$i", "id", packageName) mRemoteViews.apply { - setTextViewText(id, days[i * 7].weekOfYear.toString() + ":") + setTextViewText(id, days[i * 7 + 3].weekOfYear.toString() + ":") setInt(id, "setTextColor", mWeakTextColor) setViewVisibility(id, if (displayWeekNumbers) View.VISIBLE else View.GONE) }