Skip to content

Commit 1b63787

Browse files
committed
Use requireActivity() instead of activity!!`
requireActivity throws a more explicit exception
1 parent 8f4aa38 commit 1b63787

1 file changed

Lines changed: 1 addition & 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: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ class MonthFragment : Fragment(), MonthlyCalendar {
103103
contentDescription = text
104104

105105
if (activity != null) {
106-
setTextColor(activity!!.getProperTextColor())
106+
setTextColor(requireActivity().getProperTextColor())
107107
}
108108
}
109109
updateDays(days)

0 commit comments

Comments
 (0)