Use requireActivity()
instead of
activity!!`
requireActivity throws a more explicit exception
This commit is contained in:
parent
8f4aa386b2
commit
1b637874be
1 changed files with 1 additions and 1 deletions
|
@ -103,7 +103,7 @@ class MonthFragment : Fragment(), MonthlyCalendar {
|
|||
contentDescription = text
|
||||
|
||||
if (activity != null) {
|
||||
setTextColor(activity!!.getProperTextColor())
|
||||
setTextColor(requireActivity().getProperTextColor())
|
||||
}
|
||||
}
|
||||
updateDays(days)
|
||||
|
|
Loading…
Reference in a new issue