Use requireActivity() instead of activity!!`

requireActivity throws a more explicit exception
This commit is contained in:
Naveen 2022-05-20 03:49:29 +05:30
parent 8f4aa386b2
commit 1b637874be

View file

@ -103,7 +103,7 @@ class MonthFragment : Fragment(), MonthlyCalendar {
contentDescription = text
if (activity != null) {
setTextColor(activity!!.getProperTextColor())
setTextColor(requireActivity().getProperTextColor())
}
}
updateDays(days)