Skip to content

Commit

Permalink
Check that the DayViewResource property is set.
Browse files Browse the repository at this point in the history
  • Loading branch information
kizitonwose committed Jan 2, 2021
1 parent 6d004c2 commit 6973a1f
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,7 @@ open class CalendarView : RecyclerView {
wrappedPageHeightAnimationDuration
)
}
check(dayViewResource != 0) { "No value set for `cv_dayViewResource` attribute." }
}

override fun onMeasure(widthMeasureSpec: Int, heightMeasureSpec: Int) {
Expand Down

0 comments on commit 6973a1f

Please sign in to comment.