mirror of
https://github.com/SimpleMobileTools/Simple-Calendar.git
synced 2025-06-05 21:59:17 +02:00
Use requireActivity()
instead of
activity!!`
requireActivity throws a more explicit exception
This commit is contained in:
@@ -103,7 +103,7 @@ class MonthFragment : Fragment(), MonthlyCalendar {
|
||||
contentDescription = text
|
||||
|
||||
if (activity != null) {
|
||||
setTextColor(activity!!.getProperTextColor())
|
||||
setTextColor(requireActivity().getProperTextColor())
|
||||
}
|
||||
}
|
||||
updateDays(days)
|
||||
|
Reference in New Issue
Block a user