From 958ddf0f37df105d5654ead22535a6c2554300d8 Mon Sep 17 00:00:00 2001 From: tibbi Date: Mon, 22 Feb 2021 23:25:20 +0100 Subject: [PATCH] handle updating text colors at the monthly/daily view --- .../calendar/pro/fragments/MonthDayFragment.kt | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/calendar/pro/fragments/MonthDayFragment.kt b/app/src/main/kotlin/com/simplemobiletools/calendar/pro/fragments/MonthDayFragment.kt index 63099cc27..3eac369df 100644 --- a/app/src/main/kotlin/com/simplemobiletools/calendar/pro/fragments/MonthDayFragment.kt +++ b/app/src/main/kotlin/com/simplemobiletools/calendar/pro/fragments/MonthDayFragment.kt @@ -29,7 +29,6 @@ import kotlinx.android.synthetic.main.fragment_month_day.view.* import org.joda.time.DateTime class MonthDayFragment : Fragment(), MonthlyCalendar { - private var mTextColor = 0 private var mSundayFirst = false private var mShowWeekNumbers = false private var mDayCode = "" @@ -158,7 +157,11 @@ class MonthDayFragment : Fragment(), MonthlyCalendar { } private fun setupButtons() { - mTextColor = mConfig.textColor + val textColor = mConfig.textColor + mHolder.apply { + month_day_selected_day_label.setTextColor(textColor) + month_day_no_events_placeholder.setTextColor(textColor) + } } fun printCurrentView() {}