diff --git a/app/src/main/kotlin/com/simplemobiletools/calendar/pro/fragments/MonthFragment.kt b/app/src/main/kotlin/com/simplemobiletools/calendar/pro/fragments/MonthFragment.kt index dc8cb214b..63fa9b29f 100644 --- a/app/src/main/kotlin/com/simplemobiletools/calendar/pro/fragments/MonthFragment.kt +++ b/app/src/main/kotlin/com/simplemobiletools/calendar/pro/fragments/MonthFragment.kt @@ -103,7 +103,7 @@ class MonthFragment : Fragment(), MonthlyCalendar { contentDescription = text if (activity != null) { - setTextColor(activity!!.getProperTextColor()) + setTextColor(requireActivity().getProperTextColor()) } } updateDays(days)