adding a crashfix

This commit is contained in:
tibbi
2022-04-09 22:06:01 +02:00
parent 329dae402d
commit c9e6b5cd81

View File

@@ -101,7 +101,10 @@ class MonthFragment : Fragment(), MonthlyCalendar {
mHolder.top_value.apply { mHolder.top_value.apply {
text = month text = month
contentDescription = text contentDescription = text
setTextColor(requireContext().getProperTextColor())
if (activity != null) {
setTextColor(activity!!.getProperTextColor())
}
} }
updateDays(days) updateDays(days)
} }