Skip to content

Commit c9e6b5c

Browse files
committed
adding a crashfix
1 parent 329dae4 commit c9e6b5c

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

  • app/src/main/kotlin/com/simplemobiletools/calendar/pro/fragments

app/src/main/kotlin/com/simplemobiletools/calendar/pro/fragments/MonthFragment.kt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,10 @@ class MonthFragment : Fragment(), MonthlyCalendar {
101101
mHolder.top_value.apply {
102102
text = month
103103
contentDescription = text
104-
setTextColor(requireContext().getProperTextColor())
104+
105+
if (activity != null) {
106+
setTextColor(activity!!.getProperTextColor())
107+
}
105108
}
106109
updateDays(days)
107110
}

0 commit comments

Comments
 (0)